Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
machinelv opened this issue May 11, 2022 · 1 comment

Comments

@machinelv
Copy link

machinelv commented May 11, 2022

Background

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

  • NVIDIA Jetson Xavier NX (Developer Kit Version)
    • Jetpack 4.6.1 [L4T 32.7.1]
    • NV Power Mode: MODE_20W_6CORE - Type: 8
    • jetson_stats.service: active
  • Libraries:
    • CUDA: 10.2.300
    • cuDNN: 8.2.1.32
    • TensorRT: 8.2.1.8
    • Visionworks: 1.6.0.501
    • OpenCV: 3.4.3 compiled CUDA: YES
    • VPI: ii libnvvpi1 1.2.3 arm64 NVIDIA Vision Programming Interface library
    • Vulkan: 1.2.70

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
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant