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

semantic segmentation setParametersNet('model') #3

Open
paul8666 opened this issue Sep 23, 2016 · 1 comment
Open

semantic segmentation setParametersNet('model') #3

paul8666 opened this issue Sep 23, 2016 · 1 comment

Comments

@paul8666
Copy link

I tried semantic segmentation, preloading a vgg19 network and fine tuning on cityscapes, but when I tried to train, I gave an error on setParametersNet, did I do some mistake in initialization process?

qlua: /home/paul/torch/install/share/lua/5.1/nn/Module.lua:218: Torch object, table, thread, cdata or function expected
stack traceback:
[C]: at 0x7f995ab4e9d0
[C]: in function 'pointer'
/home/paul/torch/install/share/lua/5.1/nn/Module.lua:218: in function 'flatten'
/home/paul/torch/install/share/lua/5.1/nn/Module.lua:292: in function 'getParameters'
train.lua:44: in function 'setParametersNet'
main.lua:53: in main chunk

@amrit110
Copy link
Owner

i can't reproduce your error. seems like some issue with pointers to the modules in the model/pointer to the model itself. try cloning the model before you do getParameters().

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