torrvision / crfasrnn

This repository contains the source code for the semantic image segmentation method described in the ICCV 2015 paper: Conditional Random Fields as Recurrent Neural Networks. http://crfasrnn.torr.vision/
Other
1.34k stars 462 forks source link

Python demo script on Ubuntu 14.04: "Check failed: *ptr host allocation of size 282240000 failed" #148

Closed jeorgen closed 7 years ago

jeorgen commented 7 years ago

Running on Virtualbox, CPU only enabled, 4GB RAM, when running the python test script:

python crfasrnn_demo.py
I1111 22:10:54.382776  1512 net.cpp:299] Memory required for data: 1287634208
[libprotobuf WARNING google/protobuf/io/coded_stream.cc:505] Reading dangerously large protocol message.  If the message turns out to be larger than 2147483647 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 537968303
I1111 22:10:56.018944  1512 upgrade_proto.cpp:620] Attempting to upgrade input file specified using deprecated V1LayerParameter: TVG_CRFRNN_COCO_VOC.caffemodel
I1111 22:10:56.551506  1512 upgrade_proto.cpp:628] Successfully upgraded file specified using deprecated V1LayerParameter
F1111 22:11:06.945744  1512 syncedmem.hpp:24] Check failed: *ptr host allocation of size 282240000 failed
*** Check failure stack trace: ***
Aborted (core dumped)
jeorgen commented 7 years ago

Worked by giving 6GB to the Ubuntu VM!