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

resnet models don't produce results #159

Open
agilebean opened this issue Apr 26, 2018 · 1 comment
Open

resnet models don't produce results #159

agilebean opened this issue Apr 26, 2018 · 1 comment

Comments

@agilebean
Copy link

Hi,
I have tried using the ResNet models for torch provided by the Facebook distribution:

th slow_neural_style.lua -gpu 0 -use_cudnn 1 
-content_image /home/rstudio/sync-fns/input/jessica_alba1.jpg 
-style_image /home/rstudio/sync-fns/styles/cloth5.jpg 
-output_image /home/rstudio/sync-fns/output/resnet101-1-cloth5.png 
-num_iterations 1000 -print_every 10 -save_every 500 
-loss_network /home/rstudio/resnet-101.t7 
-preprocessing resnet

Unfortunately, they give me pictures only containing noise:
resnet101-1-cloth5_1000

This is strange -
using exactly the same code with the vgg16 model renders good results:

image

Do I have to convert the t7 model somehow??

@agilebean
Copy link
Author

I found this in the log - maybe it gives a hint.

/home/rstudio/torch/install/bin/luajit: ./fast_neural_style/TotalVariation.lua:33: invalid arguments: CudaTensor nil
expected arguments: *CudaTensor* [CudaTensor] float | *CudaTensor* [CudaTensor] [float] CudaTensor
stack traceback:
[C]: in function 'add'
./fast_neural_style/TotalVariation.lua:33: in function 'updateGradInput'
/home/rstudio/torch/install/share/lua/5.1/nn/Module.lua:31: in function 'backward'
slow_neural_style.lua:130: in function 'opfunc'
/home/rstudio/torch/install/share/lua/5.1/optim/lbfgs.lua:66: in function 'lbfgs'
slow_neural_style.lua:156: in function 'main'
slow_neural_style.lua:172: in main chunk
[C]: in function 'dofile'
...udio/torch/install/lib/luarocks/rocks/trepl/scm-1/bin/th:150: in main chunk
[C]: at 0x00405d50

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