Skip to content
This repository has been archived by the owner on Jun 10, 2021. It is now read-only.

error in releasing model #89

Closed
wsnooker opened this issue Jan 23, 2017 · 4 comments
Closed

error in releasing model #89

wsnooker opened this issue Jan 23, 2017 · 4 comments

Comments

@wsnooker
Copy link

wsnooker commented Jan 23, 2017

th tools/release_model.lua -model model/demo_epoch4_1503.07.t7 -output_model model/cdemo_epoch4_1503.07.t7 -gpuid 1

Loading model 'model/demo_epoch4_1503.07.t7'...
... done.
Converting model...
/root/torch/install/bin/luajit: tools/release_model.lua:49: attempt to call method 'float' (a nil value)
stack traceback:
tools/release_model.lua:49: in function 'main'
tools/release_model.lua:60: in main chunk
[C]: in function 'dofile'
/root/torch/install/lib/luarocks/rocks/trepl/scm-1/bin/th:145: in main chunk
[C]: at 0x00406670

@wsnooker wsnooker changed the title error error in releasing model Jan 23, 2017
@guillaumekln
Copy link
Collaborator

guillaumekln commented Jan 23, 2017

Can you share the options you used for training? And are you using the latest version of the code?

@wsnooker
Copy link
Author

The training parameter was the default option in project demo. And I switch to release v0.2.0 branch, model conversion worked fine. Maybe I pushed something wrong in the master branch.

@wsnooker
Copy link
Author

I pulled the new master branch and checked again, then tools/release_model.lua failed to convert GPU model to CPU model.

@guillaumekln
Copy link
Collaborator

Do you get the same error with the updated code?

I suspect your model was trained with -brnn and the version of tools/release_model.lua is older than ff48a96.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

2 participants