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

Neuron trained with Human face data fails to execute in this code #39

Open
harshithabk opened this issue Aug 8, 2018 · 0 comments
Open

Comments

@harshithabk
Copy link

Hi,
By referring the below link:
#24
I trained train.lua with human face data in context encoder https://github.com/pathak22/context-encoder

The trained model, when tested, executes in context encoder.
However the same trained model fails to execute in Faster-High-Res-Neural-Inpainting source code.
When i run the command: th run_content_network.lua,
I get the below error log:

Found Environment variable CUDNN_PATH = /home/test/cudnn-8.0-linux-x64-v5.0-ga/cuda/lib64/libcudnn.so.5.0.5{
gpu : 1
model_file : "models/inpaintCenterHumanFaceNoRetrain_500_net_G.t7"
overlapPred : 4
fineSize : 128
}
/home/test/torch/install/bin/luajit: /home/test/torch/install/share/lua/5.1/nn/Container.lua:67:
In 1 module of nn.Sequential:
In 1 module of nn.Sequential:
/home/test/torch/install/share/lua/5.1/nn/THNN.lua:110: bad argument #3 to 'v' (cannot convert 'struct THDoubleTensor *' to 'struct THFloatTensor *')
stack traceback:
[C]: in function 'v'
/home/test/torch/install/share/lua/5.1/nn/THNN.lua:110: in function 'SpatialConvolutionMM_updateOutput'
...ya/torch/install/share/lua/5.1/nn/SpatialConvolution.lua:79: in function <...ya/torch/install/share/lua/5.1/nn/SpatialConvolution.lua:76>
[C]: in function 'xpcall'
/home/test/torch/install/share/lua/5.1/nn/Container.lua:63: in function 'rethrowErrors'
/home/test/torch/install/share/lua/5.1/nn/Sequential.lua:44: in function </home/test/torch/install/share/lua/5.1/nn/Sequential.lua:41>
[C]: in function 'xpcall'
/home/test/torch/install/share/lua/5.1/nn/Container.lua:63: in function 'rethrowErrors'
/home/test/torch/install/share/lua/5.1/nn/Sequential.lua:44: in function 'forward'
run_content_network.lua:41: in main chunk
[C]: in function 'dofile'
...est/torch/install/lib/luarocks/rocks/trepl/scm-1/bin/th:150: in main chunk
[C]: at 0x00405d50

WARNING: If you see a stack trace below, it doesn't point to the place where this error occurred. Please use only the one above.
stack traceback:
[C]: in function 'error'
/home/test/torch/install/share/lua/5.1/nn/Container.lua:67: in function 'rethrowErrors'
/home/test/torch/install/share/lua/5.1/nn/Sequential.lua:44: in function 'forward'
run_content_network.lua:41: in main chunk
[C]: in function 'dofile'
...est/torch/install/lib/luarocks/rocks/trepl/scm-1/bin/th:150: in main chunk
[C]: at 0x00405d50

I referred the link torch/nn#981
to resolve this issue.
However its not resolved yet.
I was wondering when the model is executing in context encoder, what could be the reason for this error in Faster-High-Res-Neural-Inpainting
Could you help me regarding the same?

@harshithabk harshithabk changed the title Neuron trained with Human face fails to execute in this code Neuron trained with Human face data fails to execute in this code Aug 8, 2018
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