Comments (23)
Do you have data.t7
, answers_vocab.t7
, and questions_vocab.t7
in the data/
folder and the model checkpoint in the checkpoints/
folder? (Download links given here).
from neural-vqa.
Yes I have all of these in correct folders
from neural-vqa.
That's odd. It seems like a path issue. Line 47 is local data = torch.load(tensor_file)
. If you th
and torch.load('data/data.t7')
, do you get the same error?
from neural-vqa.
If I th and torch.load('data/data.t7')
I get error as
...e/aekansh/torch/install/share/lua/5.1/torch/File.lua:259: read error: read 0 blocks instead of 1 at /home/aekansh/torch/pkg/torch/lib/TH/THDiskFile.c:349
stack traceback:
...e/aekansh/torch/install/share/lua/5.1/trepl/init.lua:506: in function <...e/aekansh/torch/install/share/lua/5.1/trepl/init.lua:499>
[C]: in function 'readInt'
...e/aekansh/torch/install/share/lua/5.1/torch/File.lua:259: in function 'readObject'
...e/aekansh/torch/install/share/lua/5.1/torch/File.lua:368: in function 'readObject'
...e/aekansh/torch/install/share/lua/5.1/torch/File.lua:369: in function 'readObject'
...e/aekansh/torch/install/share/lua/5.1/torch/File.lua:369: in function 'readObject'
...e/aekansh/torch/install/share/lua/5.1/torch/File.lua:409: in function 'load'
[string "_RESULT={torch.load('data/data.t7')}"]:1: in main chunk
[C]: in function 'xpcall'
...e/aekansh/torch/install/share/lua/5.1/trepl/init.lua:661: in function 'repl'
.../torch/install/lib/luarocks/rocks/trepl/scm-1/bin/th:204: in main chunk
[C]: ?
from neural-vqa.
Thanks. Same error. How about torch.load('data/data.t7', 'binary')
?
from neural-vqa.
Same error still
from neural-vqa.
..e/aekansh/torch/install/share/lua/5.1/torch/File.lua:259: read error: read 0 blocks instead of 1 at /home/aekansh/torch/pkg/torch/lib/TH/THDiskFile.c:349
stack traceback:
...e/aekansh/torch/install/share/lua/5.1/trepl/init.lua:506: in function <...e/aekansh/torch/install/share/lua/5.1/trepl/init.lua:499>
[C]: in function 'readInt'
...e/aekansh/torch/install/share/lua/5.1/torch/File.lua:259: in function 'readObject'
...e/aekansh/torch/install/share/lua/5.1/torch/File.lua:368: in function 'readObject'
...e/aekansh/torch/install/share/lua/5.1/torch/File.lua:369: in function 'readObject'
...e/aekansh/torch/install/share/lua/5.1/torch/File.lua:369: in function 'readObject'
...e/aekansh/torch/install/share/lua/5.1/torch/File.lua:409: in function 'load'
[string "_RESULT={torch.load('data/data.t7','binary'..."]:1: in main chunk
[C]: in function 'xpcall'
...e/aekansh/torch/install/share/lua/5.1/trepl/init.lua:661: in function 'repl'
.../torch/install/lib/luarocks/rocks/trepl/scm-1/bin/th:204: in main chunk
[C]: ?
from neural-vqa.
Thanks. Seems like an architecture issue. Could you try downloading data.ascii.t7
from here. And then try torch.load('data/data.ascii.t7', 'ascii')
.
from neural-vqa.
After using
load('data/data.ascii.t7', 'ascii')
Output given is
...e/aekansh/torch/install/share/lua/5.1/torch/File.lua:375: unknown object
stack traceback:
...e/aekansh/torch/install/share/lua/5.1/trepl/init.lua:506: in function <...e/aekansh/torch/install/share/lua/5.1/trepl/init.lua:499>
[C]: in function 'error'
...e/aekansh/torch/install/share/lua/5.1/torch/File.lua:375: in function 'readObject'
...e/aekansh/torch/install/share/lua/5.1/torch/File.lua:409: in function 'load'
[string "_RESULT={torch.load('data/data.ascii.t7')}"]:1: in main chunk
[C]: in function 'xpcall'
...e/aekansh/torch/install/share/lua/5.1/trepl/init.lua:661: in function 'repl'
.../torch/install/lib/luarocks/rocks/trepl/scm-1/bin/th:204: in main chunk
[C]: ?
from neural-vqa.
Strange! The documentation suggests ascii
should be readable. Not sure what the issue is. You might want to try asking on the Torch group: https://groups.google.com/forum/#!forum/torch7.
from neural-vqa.
OK thanks
from neural-vqa.
@abhshkdz I am not getting this error on th
then torch.load('data/data.t7')
. Instead, am getting this type of output (am displaying just one)-
121512 :
{
answer : 997
image_id : 552610
question : ShortTensor - size: 23
}
I guess this works fine.
But, on using the predict.lua
as -
th predict.lua -checkpoint_file checkpoints/vqa_epoch23.26_0.4610_cpu.t7 -input_image_path data/train2014/COCO_train2014_000000405543.jpg -question 'What is in the plate'
am getting the following stacktrace -
Loading data files...
loading checkpoint from checkpoints/vqa_epoch23.26_0.4610_cpu.t7
Warning: Failed to load function from bytecode: (binary): cannot load incompatible bytecodeWarning: Failed to load function from bytecode: [string "..."]:1: unexpected symbol near 'char(8)'/Users/WARL0CK/torch/install/bin/luajit: /Users/WARL0CK/torch/install/share/lua/5.1/torch/File.lua:375: unknown object
stack traceback:
[C]: in function 'error'
/Users/WARL0CK/torch/install/share/lua/5.1/torch/File.lua:375: in function 'readObject'
/Users/WARL0CK/torch/install/share/lua/5.1/torch/File.lua:307: in function 'readObject'
/Users/WARL0CK/torch/install/share/lua/5.1/torch/File.lua:369: in function 'readObject'
/Users/WARL0CK/torch/install/share/lua/5.1/nn/Module.lua:192: in function 'read'
/Users/WARL0CK/torch/install/share/lua/5.1/torch/File.lua:351: in function 'readObject'
/Users/WARL0CK/torch/install/share/lua/5.1/torch/File.lua:369: in function 'readObject'
/Users/WARL0CK/torch/install/share/lua/5.1/torch/File.lua:369: in function 'readObject'
/Users/WARL0CK/torch/install/share/lua/5.1/torch/File.lua:353: in function 'readObject'
/Users/WARL0CK/torch/install/share/lua/5.1/torch/File.lua:369: in function 'readObject'
/Users/WARL0CK/torch/install/share/lua/5.1/torch/File.lua:369: in function 'readObject'
...
/Users/WARL0CK/torch/install/share/lua/5.1/torch/File.lua:369: in function 'readObject'
.../WARL0CK/torch/install/share/lua/5.1/nngraph/gmodule.lua:495: in function 'read'
/Users/WARL0CK/torch/install/share/lua/5.1/torch/File.lua:351: in function 'readObject'
/Users/WARL0CK/torch/install/share/lua/5.1/torch/File.lua:369: in function 'readObject'
/Users/WARL0CK/torch/install/share/lua/5.1/torch/File.lua:369: in function 'readObject'
/Users/WARL0CK/torch/install/share/lua/5.1/torch/File.lua:409: in function 'load'
predict.lua:64: in main chunk
[C]: in function 'dofile'
...L0CK/torch/install/lib/luarocks/rocks/trepl/scm-1/bin/th:150: in main chunk
[C]: at 0x01045bb350
What @aekanshkansal1 is facing is ARM
architecture issue I guess, but ascii
should work nicely.
from neural-vqa.
Hey @yadavankit, data.t7
looks fine. The error looks like you're using luajit
, the checkpoint was created using lua5.1 (ref).
from neural-vqa.
@abhshkdz thanks 👍 will clean
and install 5.1 right away
from neural-vqa.
Now, am getting error on evaluating, am already having the latest protobuf
3.2.0 installed -
[libprotobuf` INFO google/protobuf/io/coded_stream.cc:610] 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:81] The total number of bytes read was 574671192
Successfully loaded models/VGG_ILSVRC_19_layers.caffemodel
lua(31231,0x7fffcec693c0) malloc: *** error for object 0x7fbb84e274e0: incorrect checksum for freed object - object was probably modified after being freed.
*** set a breakpoint in malloc_error_break to debug
[1] 31231 abort th predict.lua -checkpoint_file checkpoints/vqa_epoch23.26_0.4610_cpu.t7
from neural-vqa.
Memory issues?
from neural-vqa.
Should I try increasing the limit as below?
CodedInputStream::SetTotalBytesLimit()
in google/protobuf/io/coded_stream.h
What would you recommend doing?
from neural-vqa.
Don't think it's that. Read bytes seem to be lower than the limit. Does this error show up in every run? Could you monitor system memory and see if things aren't going over? You could also comment everything after the loadcaffe.load(...)
line and gradually uncomment things to pinpoint what's causing the issue.
from neural-vqa.
No, every now and then this error occurs too -
Loading data files...
loading checkpoint from checkpoints/vqa_epoch23.26_0.4610_cpu.t7
[libprotobuf INFO google/protobuf/io/coded_stream.cc:610] 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:81] The total number of bytes read was 574671192
Successfully loaded models/VGG_ILSVRC_19_layers.caffemodel
[1] 33360 bus error th predict.lua -checkpoint_file checkpoints/vqa_epoch23.26_0.4610_cpu.t7
from neural-vqa.
I don't think system memory will be the problem here,
from neural-vqa.
Am now getting this too -
lua(33505,0x7fffcec693c0) malloc: *** error for object 0x7faf1dee6210: incorrect checksum for freed object - object was probably modified after being freed.
*** set a breakpoint in malloc_error_break to debug
[1] 33505 abort th predict.lua -checkpoint_file checkpoints/vqa_epoch23.26_0.4610_cpu.t7
from neural-vqa.
hi @yadavankit ,I get the same error, how you fixed it? thank you
"Loading data files...
loading checkpoint from checkpoints/vqa_epoch23.26_0.4610_cpu.t7
Warning: Failed to load function from bytecode: (binary): cannot load incompatible bytecodeWarning: Failed to load function from bytecode: [string "..."]:1: unexpected symbol near 'char(8)'/Users/WARL0CK/torch/install/bin/luajit: /Users/WARL0CK/torch/install/share/lua/5.1/torch/File.lua:375: unknown object
stack traceback:"
from neural-vqa.
@zhimeng9 which version of Lua are you using?
from neural-vqa.
Related Issues (15)
- Provided checkpoint file cannot be used. HOT 6
- not enough memory HOT 10
- LookupTable.lua:75: bad argument #3 to 'index' (Tensor | LongTensor expected, got torch.CudaLongTensor) HOT 3
- should this directory works well?
- what 's means about "not found: .......THNN.lua:108: NYI: call arg type " ? HOT 4
- cannot open <data/MultipleChoice_mscoco_train2014_questions.json> in mode r at /home/hadjer/torch/pkg/torch/lib/TH/THDiskFile.c:673 stack traceback: [C]: ? [C]: in function 'DiskFile' ./utils/DataLoader.lua:234: in function 'json_to_tensor' ./utils/DataLoader.lua:43: in function 'create' extract_fc7.lua:47: in main chunk [C]: in function 'dofile' .../torch/install/lib/luarocks/rocks/trepl/scm-1/bin/th:150: in main chunk HOT 2
- 2vis-lstm
- work issue
- Performance on VQA test set HOT 3
- modify the code to do image caption HOT 2
- Error ---- predict.lua -checkpoint_file vqa_epoch15.00_0.4576.t7 -input_image_path data/train2014/COCO_train2014_000000405541.jpg -question 'What is the cat on?' HOT 7
- unknown Torch class <torch.CudaTensor> HOT 21
- cutorch not necessary for extracting image features on CPU HOT 1
- Performance and memory issue with training HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from neural-vqa.