jiasenlu / AdaptiveAttention

Implementation of "Knowing When to Look: Adaptive Attention via A Visual Sentinel for Image Captioning"
https://arxiv.org/abs/1612.01887
Other
334 stars 74 forks source link

Demo on CPU issue #3

Open sarath-nookala opened 7 years ago

sarath-nookala commented 7 years ago

Pretrained model is giving CUDA errors in CPU :(URGENT HELP NEEDED )

Loading model from: save/coco_train.t7
/home/sarath/torch/install/share/lua/5.1/torch/File.lua:343: unknown Torch class stack traceback: [C]: in function 'error' /home/sarath/torch/install/share/lua/5.1/torch/File.lua:343: in function 'readObject' /home/sarath/torch/install/share/lua/5.1/torch/File.lua:369: in function 'readObject' /home/sarath/torch/install/share/lua/5.1/torch/File.lua:369: in function 'readObject' /home/sarath/torch/install/share/lua/5.1/nn/Module.lua:192: in function 'read' /home/sarath/torch/install/share/lua/5.1/torch/File.lua:351: in function 'readObject' /home/sarath/torch/install/share/lua/5.1/torch/File.lua:369: in function 'readObject' /home/sarath/torch/install/share/lua/5.1/torch/File.lua:369: in function 'readObject' /home/sarath/torch/install/share/lua/5.1/torch/File.lua:409: in function 'load' [string "opt = {}..."]:14: in main chunk [C]: in function 'xpcall' /home/sarath/torch/install/share/lua/5.1/itorch/main.lua:210: in function </home/sarath/torch/install/share/lua/5.1/itorch/main.lua:174> /home/sarath/torch/install/share/lua/5.1/lzmq/poller.lua:75: in function 'poll' /home/sarath/torch/install/share/lua/5.1/lzmq/impl/loop.lua:307: in function 'poll' /home/sarath/torch/install/share/lua/5.1/lzmq/impl/loop.lua:325: in function 'sleep_ex' /home/sarath/torch/install/share/lua/5.1/lzmq/impl/loop.lua:370: in function 'start' /home/sarath/torch/install/share/lua/5.1/itorch/main.lua:389: in main chunk [C]: in function 'require' (command line):1: in main chunk [C]: at 0x00406670


Will the uploaded checkpoints work for even CPU DEMO ??? If not could you supply the checkpoints for CPU demo???