torch.load throws error while loading .t7 file

109 views
Skip to first unread message

Yash Kant

unread,
May 29, 2019, 12:02:28 PM5/29/19
to torch7
Hi, I am trying to run this code-base (https://github.com/Cloud-CV/visual-chatbot) and I am unable to debug the following error I get on this line (https://github.com/Cloud-CV/visual-chatbot/blob/master/evaluate.lua#L60): 

>> python worker.py
[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 553432081
Successfully loaded models/VGG_ILSVRC_16_layers.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: 1 1 4096 1000
$ Error: cannot open <models/hre-qih-g-new.t7> in mode r  at /tmp/luarocks_torch-scm-1-5587/torch7/lib/TH/THDiskFile.c:673

Can anyone please help me understand what is going wrong? I have the <models/hre-qih-g-new.t7> file present in the required folder. Thank you. 

---
Thanks,
Yash Kant

Akash Mehta

unread,
Aug 19, 2022, 12:00:55 PM8/19/22
to torch7
Hi, did you get a fix for this?
Reply all
Reply to author
Forward
0 new messages