Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

text encoder for birds and flowers datasets #11

Open
seragENTp opened this issue Dec 5, 2016 · 1 comment
Open

text encoder for birds and flowers datasets #11

seragENTp opened this issue Dec 5, 2016 · 1 comment

Comments

@seragENTp
Copy link

in main_cls_int.lua , the text encoder is as follow :
netR = nn.Sequential()
if opt.replicate == 1 then
netR:add(nn.Reshape(opt.batchSize / opt.numCaption, opt.numCaption, opt.txtSize))
netR:add(nn.Transpose({1,2}))
netR:add(nn.Mean(1))
netR:add(nn.Replicate(opt.numCaption))
netR:add(nn.Transpose({1,2}))
netR:add(nn.Reshape(opt.batchSize, opt.txtSize))
else
netR:add(nn.Reshape(opt.batchSize, opt.numCaption, opt.txtSize))
netR:add(nn.Transpose({1,2}))
netR:add(nn.Mean(1))
end

however, in the paper you used hyprid CNN-RNN network , is it ok to use this network instead of the one mentioned in the paper ?

@youngjung-obsolete
Copy link

@seragENTp To my knowledge, netR just replacates the input text vector and the text vector is already encoded by cvpr2016 code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants