module 'nn' not found
ashishgupta2598 opened this issue · comments
I tried running the code but its showing this error
> no field package.preload['nn']
no file './nn.lua'
no file '/usr/share/luajit-2.1.0-beta3/nn.lua'
no file '/usr/local/share/lua/5.1/nn.lua'
no file '/usr/local/share/lua/5.1/nn/init.lua'
no file '/usr/share/lua/5.1/nn.lua'
no file '/usr/share/lua/5.1/nn/init.lua'
no file './nn.so'
no file '/usr/local/lib/lua/5.1/nn.so'
no file '/usr/lib/x86_64-linux-gnu/lua/5.1/nn.so'
no file '/usr/local/lib/lua/5.1/loadall.so'
stack traceback:
[C]: in function 'error'
/usr/share/lua/5.1/trepl/init.lua:389: in function 'require'
main.lua:1: in main chunk
[C]: in function 'dofile'
/usr/lib/torch-trepl/th:149: in main chunk
[C]: at 0x561c0f12c1d0
I have pytorch installed.
Hii,
Thanks for your reply. But Can you help me with this error. I simply followed the steps th main.lua -gpu 0 -class chair
but it shows that error(nn module not found)
@ashishgupta2598 do you have all the prerequisites installed?
As I understand it this project doesn't use the pytorch library. It uses the original torch. You can find it here. You need to read the prerequisites in the README.md more carefully. It specifies everything you need.
I'll paste here the prerequisites so you can take a better look at them:
Prerequisites
Torch
We use Torch 7 (http://torch.ch) for our implementation with these additional packages:
matio
orfb.mattorch
: we use.mat
file for saving voxelized shapes.
Visualization
- Basic visualization: MATLAB (tested on R2016b)
- Advanced visualization: Python 2.7 with package
numpy
,matplotlib
,scipy
andvtk
(version 5.10.1)
Note: for advanced visualization, the version of vtk
has to be 5.10.1, not above. It is available in the package list of common Python distributions like Anaconda