Description
while running NeuralTalk2 demo using the below command. I am getting error.
Command:
th videocaptioning.lua -gpuid -1 -model ~/model_id1-501-1448236541.t7
opengl support available
/home/.../torch/install/bin/luajit: /home/.../torch/install/share/lua/5.1/torch/File.lua:343: unknown Torch class <torch.CudaTensor>
stack traceback:
[C]: in function 'error'
/home/ptcuser/torch/install/share/lua/5.1/torch/File.lua:343: in function 'readObject'
/home/ptcuser/torch/install/share/lua/5.1/torch/File.lua:369: in function 'readObject'
/home/ptcuser/torch/install/share/lua/5.1/nn/Module.lua:158: in function 'read'
/home/ptcuser/torch/install/share/lua/5.1/torch/File.lua:351: in function 'readObject'
/home/ptcuser/torch/install/share/lua/5.1/torch/File.lua:369: in function 'readObject'
/home/ptcuser/torch/install/share/lua/5.1/torch/File.lua:369: in function 'readObject'
/home/ptcuser/torch/install/share/lua/5.1/torch/File.lua:409: in function 'load'
videocaptioning.lua:74: in main chunk
[C]: in function 'dofile'
...user/torch/install/lib/luarocks/rocks/trepl/scm-1/bin/th:145: in main chunk
[C]: at 0x00406670
Thanks in Advance!!
Activity
chaonan99 commentedon Aug 12, 2016
The model you use (model_id1-501-1448236541.t7) is a GPU model, but you run it with CPU mode (
-gpuid -1
). You can useconvert_checkpoint_gpu_to_cpu.lua
to replace CudaTensor with normal Tensor first.clicman commentedon Oct 3, 2016
Is it possible to convert model to CPU without GPU onboard?
On my try it fails with
JiteshPshah commentedon Jul 3, 2017
@chaonan99 How to I replace cuda tensor to normal tensor ?
himanshudce commentedon Jul 8, 2018
just add -gpuid 1 at the end