-
Notifications
You must be signed in to change notification settings - Fork 14
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
Problem with torch load pre-trained model #4
Comments
By the way, I had tried load model in 'ascii' mode, but I got the another error message: /home/mark/torch/install/bin/lua: /home/mark/torch/install/share/lua/5.2/torch/File.lua:259: read error: read 0 blocks instead of 1 at /home/mark/torch/pkg/torch/lib/TH/THDiskFile.c:352 |
Hi there, |
@imelekhov thank you for your answer, I am using Cuda 8.0 and CUDNN 6.0. I have tried to train the model and have created some snapshot, and I can load those .t7 which created by myself. |
I see. Sure, no problem. I have converted original weights to |
Well, still have some problem here.
I am using Ubuntu 16.04 with Lua 5.1 now, I don't sure the version of Lua will impact or not. By the way, would you mind sharing the landmarks dataset which you used to training and validation in the paper? |
Hi,
I was trying to using the pre-trained model which download from this repository.
but I met the problem as following:
==> loading model from pretained weights from file: ./pre-trained/siam_hybridnet_fullsized.t7
Warning: Failed to load function from bytecode: binary string: not a precompiled chunkWarning: Failed to load function from bytecode: [string "�"]:1: unexpected symbol near char(4)/home/mark/torch/install/bin/lua: /home/mark/torch/install/share/lua/5.2/torch/File.lua:375: unknown object
stack traceback:
[C]: in function 'error'
/home/mark/torch/install/share/lua/5.2/torch/File.lua:375: in function 'readObject'
/home/mark/torch/install/share/lua/5.2/torch/File.lua:307: in function 'readObject'
/home/mark/torch/install/share/lua/5.2/torch/File.lua:369: in function 'readObject'
/home/mark/torch/install/share/lua/5.2/nn/Module.lua:192: in function 'read'
/home/mark/torch/install/share/lua/5.2/torch/File.lua:351: in function 'readObject'
/home/mark/torch/install/share/lua/5.2/torch/File.lua:369: in function 'readObject'
/home/mark/torch/install/share/lua/5.2/torch/File.lua:369: in function 'readObject'
/home/mark/torch/install/share/lua/5.2/nn/Module.lua:192: in function 'read'
/home/mark/torch/install/share/lua/5.2/torch/File.lua:351: in function 'readObject'
...
...k/torch/install/share/lua/5.2/cunn/DataParallelTable.lua:398: in function 'read'
/home/mark/torch/install/share/lua/5.2/torch/File.lua:351: in function 'readObject'
/home/mark/torch/install/share/lua/5.2/torch/File.lua:409: in function 'load'
/usr/relativeCameraPose-master/gpu_util.lua:54: in function 'loadDataParallel'
/usr/relativeCameraPose-master/model.lua:71: in main chunk
[C]: in function 'dofile'
/home/mark/torch/install/share/lua/5.2/paths/init.lua:84: in function 'dofile'
main.lua:29: in main chunk
[C]: in function 'dofile'
...mark/torch/install/lib/luarocks/rocks/trepl/scm-1/bin/th:150: in main chunk
[C]: in ?
Here is the pre-trained model's MD5 hash code: (created by md5sum command)
bdf13b947817bd7d3244309b2cda811d ./pre-trained/siam_hybridnet_fullsized.t7
Is this file broken? or anything wrong?
Could anyone give me a help?
The text was updated successfully, but these errors were encountered: