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

How to execute run_pred.sh #5

Closed
alexwongdl opened this issue Oct 20, 2017 · 1 comment
Closed

How to execute run_pred.sh #5

alexwongdl opened this issue Oct 20, 2017 · 1 comment

Comments

@alexwongdl
Copy link

Hi ,
When I executed ./run_pred.sh in shell, an exception throwed: ./run_pred.sh: line 16: th: command not found. Then I modified the run_pred.sh by changing th to lua :
lua inference.lua -g $GPUID --model $MODEL --data_root $REALSET/$subset --model_param logs/$FN/param_epoch_$EPOCHTEST.t7 --bn_meanstd logs/$FN/bn_meanvar_epoch_$EPOCHTEST.t7 --saveDir outImg/$FNREAL/$subset --start_id 1 --n 100 --patchbypatch 1 --patch_size 256
It returned:

lua: inference.lua:1: module 'xlua' not found:
	no field package.preload['xlua']
	no file '/usr/local/share/lua/5.3/xlua.lua'
	no file '/usr/local/share/lua/5.3/xlua/init.lua'
	no file '/usr/local/lib/lua/5.3/xlua.lua'
	no file '/usr/local/lib/lua/5.3/xlua/init.lua'
	no file './xlua.lua'
	no file './xlua/init.lua'
	no file '/usr/local/lib/lua/5.3/xlua.so'
	no file '/usr/local/lib/lua/5.3/loadall.so'
	no file './xlua.so'
stack traceback:
	[C]: in function 'require'
	inference.lua:1: in main chunk
	[C]: in ?

So I'm wondowing how to correctly run the shell script?

@alexwongdl
Copy link
Author

OK, I see, It's Torch.

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