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

Error when running model:forward() #2

Open
vividaner opened this issue May 6, 2017 · 1 comment
Open

Error when running model:forward() #2

vividaner opened this issue May 6, 2017 · 1 comment

Comments

@vividaner
Copy link

Hi,
Thanks a lot for this great code!

I meet a problem when I tried to run the test code.

First, I am not sure what is the difference between 'train.lua' and 'train_class.lua' and the difference between the trained_models between 'epn-unet.net' and 'epn-unet-class.net'. Since I found there is no file "classifier-partial.net" which is required in train_class.lua, I run the -th train.lua instead.

However, I got an error after loading the first data as follow:
/home/dan/torch/install/bin/luajit: /home/dan/torch/install/share/lua/5.1/nngraph/gmodule.lua:311: expecting table of 2 inputs
stack traceback:
[C]: in function 'error'
/home/dan/torch/install/share/lua/5.1/nngraph/gmodule.lua:311: in function 'forward'
train.lua:202: in function 'test_batch'
train.lua:171: in function 'test'
train.lua:218: in main chunk
[C]: in function 'dofile'
.../dan/torch/install/lib/luarocks/rocks/trepl/scm-1/bin/th:150: in main chunk
[C]: at 0x00405d50

I think this error come out from here:
output = model:forward(inputs)

I am a newbie and not sure whether anything wrong about the model structure. Could you please help me to check this problem. Thanks in advance!

@vividaner
Copy link
Author

Sorry, I just found that I forgot to change the '-model epn-unet-class' as '-model epn-unet' when running the 'train.lua'. It works for the 'train.lua' now.

However, what is the difference between 'train.lua' and 'train-class.lua'? I guess that 'train-class.lua' trains a network with 3D classification like the figure 1 shown in the paper, but 'train.lua' training a network without 3D classification. Is that correct? In that case, could you provide a the 'classifier-partial.net' trained model. Thanks in advance!

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

1 participant