Soroosh129 / NeuOS

Source code for the paper: "A Latency-Predictable Multi-Dimensional Optimization Framework forDNN-driven Autonomous Systems"
Other
19 stars 5 forks source link

Reading dangerously large protocol message && Attempting to upgrade input file specified using deprecated V1LayerParameter #4

Open machinelv opened 2 years ago

machinelv commented 2 years ago

Background

Board: Jetson Xavier NX (with 8G RAM and 128G SSD) OS: Ubuntu 18.04.6 LTS

Problems

When I run run_cudnn.sh command to run vggnet, the program will stop after two warnings. Here is my output:

[libprotobuf WARNING google/protobuf/io/coded_stream.cc:604] 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:81] The total number of bytes read was 574671192
I0512 00:11:41.895918 23203 upgrade_proto.cpp:53] Attempting to upgrade input file specified using deprecated V1LayerParameter: /home/lqz/download/NeuOS/models/vggnet/VGG_ILSVRC_19_layers.caffemodel
./run-cudnn.sh: line 48: 23203 Killed                  LD_PRELOAD="/home/lqz/download/NeuOS/build/lib/libcaffe.so.1.0.0" ./classify.bin $proto $weight /home/lqz/download/NeuOS/data/ilsvrc12/imagenet_mean.binaryproto /home/lqz/download/NeuOS/data/ilsvrc12/synset_words.txt /home/lqz/download/NeuOS/examples/images/cat.jpg 15 25 5 all-AGX.config $uncert $lowrank_proto $lowrank_weight

For two warnings above, I tried to google them but I didn't found any answer that can solve my problems.

Reading dangerously large protocol message

How to change the buffer limit in Google's protobuf?

Attempting to upgrade input file specified using deprecated V1LayerParameter

what-does-attempting-to-upgrade-input-file-specified-using-deprecated-transform

Do you have any idea for my problems? I'd be very grateful if you can help me.

PS: English is not my native language; please excuse typing errors.

machinelv commented 2 years ago

Here is my configuration in run-cudnn.sh

 35 LD_PRELOAD="/home/lqz/download/NeuOS/build/lib/libcaffe.so.1.0.0" \
 36   ./classify.bin \
 37   $proto \
 38   $weight \
 39   /home/lqz/download/NeuOS/data/ilsvrc12/imagenet_mean.binaryproto \
 40   /home/lqz/download/NeuOS/data/ilsvrc12/synset_words.txt \
 41   /home/lqz/download/NeuOS/examples/images/cat.jpg \
 42   15 \
 43   25 \
 44   5 \
 45   all-TX2.config \
 46   $uncert \
 47   $lowrank_proto \
 48   $lowrank_weight
 49   #/home/lqz/download/NeuOS-dvfs/dvfs/med/Uncertainty.txt