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

'Tile' is not defined #7

Closed
suraj-vantigodi opened this issue Aug 5, 2016 · 2 comments
Closed

'Tile' is not defined #7

suraj-vantigodi opened this issue Aug 5, 2016 · 2 comments

Comments

@suraj-vantigodi
Copy link

suraj-vantigodi commented Aug 5, 2016

I do not understand this error. Kindly help me out. And is net.f(Tile[]) even required? what is it needed for?

`Traceback (most recent call last):
File "main.py", line 257, in <module>
main()
File "main.py", line 31, in main
  do_iter(task.train, model, config, train=True)
File "main.py", line 99, in do_iter
batch_data, model, config, train, vis)
File "main.py", line 120, in do_batch
predictions = forward(data, model, config, train, vis)
File "main.py", line 172, in forward
dropout=(train and config.opt.dropout), deterministic=not train)
File "/home/ubuntu/Caffe/nmn2/models/nmn.py", line 443, in forward
  deterministic)
File "/home/ubuntu/Caffe/nmn2/models/nmn.py", line 557, in forward_layout
net.f(Tile(tile_question, axis=1, tiles=n_layouts,bottoms=[proj_question])) 
NameError: global name 'Tile' is not defined
`

If I comment the lines in nmn.py , which have Tile, I get error below,

`Traceback (most recent call last):
 File "main.py", line 257, in <module>
  main()
 File "main.py", line 31, in main
 do_iter(task.train, model, config, train=True)
 File "main.py", line 99, in do_iter
  batch_data, model, config, train, vis)
 File "main.py", line 120, in do_batch
   predictions = forward(data, model, config, train, vis)
 File "main.py", line 172, in forward
 dropout=(train and config.opt.dropout), deterministic=not train)
 File "/home/ubuntu/Caffe/nmn2/models/nmn.py", line 443, in forward
   deterministic)
 File "/home/ubuntu/Caffe/nmn2/models/nmn.py", line 575, in forward_layout
  net.f(Eltwise(sum, "SUM", bottoms=[tile_question, concat_layer]))
  File "python/apollocaffe/cpp/_apollocaffe.pyx", line 287, in apollocaffe.cpp._apollocaffe.ApolloNet.f              (python/apollocaffe/cpp/_apollocaffe.cpp:7848)
  RuntimeError: src/caffe/apollonet.cpp(@209): Could not find bottom: 'LAYOUT_tile2_question' for   layer: LAYOUT_sum
 `
@jacobandreas
Copy link
Owner

Please read the README. You are using the wrong version of ApolloCaffe.

@suraj-vantigodi
Copy link
Author

Yes, sorry for my negligence. Its running now.

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