/home/ubuntu/torch/install/bin/luajit: cannot open <> in mode w at /home/ubuntu/torch/pkg/torch/lib/TH/THDiskFile.c:649
ProGamerGov opened this issue · 4 comments
ProGamerGov commented
ubuntu@ip-Address:~/cnn-benchmarks$ th convert_model.lua -input_caffemodel VGG16_SOD_finetune.caffemodel -input_prototxt VGG16_SOD_finetune_deploy.prototxt -backend nn
[libprotobuf WARNING google/protobuf/io/coded_stream.cc:537] Reading dangerously large protocol message. If the message turns out to be larger than 1073741824 bytes, parsing will be halted for security reasons. To increase the limit (or to disable these warnings), see CodedInputStream::SetTotalBytesLimit() in google/protobuf/io/coded_stream.h.
[libprotobuf WARNING google/protobuf/io/coded_stream.cc:78] The total number of bytes read was 538683157
Successfully loaded VGG16_SOD_finetune.caffemodel
conv1_1: 64 3 3 3
conv1_2: 64 64 3 3
conv2_1: 128 64 3 3
conv2_2: 128 128 3 3
conv3_1: 256 128 3 3
conv3_2: 256 256 3 3
conv3_3: 256 256 3 3
conv4_1: 512 256 3 3
conv4_2: 512 512 3 3
conv4_3: 512 512 3 3
conv5_1: 512 512 3 3
conv5_2: 512 512 3 3
conv5_3: 512 512 3 3
fc6: 1 1 25088 4096
fc7: 1 1 4096 4096
fc8-SOD100: 1 1 4096 100
/home/ubuntu/torch/install/bin/luajit: cannot open <> in mode w at /home/ubuntu/torch/pkg/torch/lib/TH/THDiskFile.c:649
stack traceback:
[C]: at 0x7f1d7a3567e0
[C]: in function 'DiskFile'
/home/ubuntu/torch/install/share/lua/5.1/torch/File.lua:385: in function 'save'
convert_model.lua:36: in main chunk
[C]: in function 'dofile'
...untu/torch/install/lib/luarocks/rocks/trepl/scm-1/bin/th:145: in main chunk
[C]: at 0x00405d50
ubuntu@ip-Address:~/cnn-benchmarks$
I get the same error with or without -backend nn
. Not sure how to resolve it.
jcjohnson commented
You need to add the flag -output_t7
giving the path where you want the output file written.
I probably should put better error handling in this script.
ProGamerGov commented
It works now! Thanks for the help!
caozhen-alex commented
@ProGamerGov @jcjohnson . I faced the same error. Could u tell me where should I add the flag -output_t7?
ArchieGu commented
@ProGamerGov . where should I add the flag, please?