mit-han-lab / temporal-shift-module

[ICCV 2019] TSM: Temporal Shift Module for Efficient Video Understanding
https://arxiv.org/abs/1811.08383
MIT License
2.05k stars 418 forks source link

google::protobuf::FatalException #173

Open Marco-KEA opened 3 years ago

Marco-KEA commented 3 years ago

Hello,

while running the Demo I receive an FatalException from Google Protobuf. Did anyone before solved this issue?

Thanks for help!

python3 main.py Open camera... [ WARN:0] global /home/nvidia/host/build_opencv/nv_opencv/modules/videoio/src/cap_gstreamer.cpp (933) open OpenCV | GStreamer warning: Cannot query video position: status=0, value=-1, duration=-1 <VideoCapture 0x7f56cabb50> Build transformer... /usr/local/lib/python3.6/dist-packages/torchvision-0.8.0a0+45f960c-py3.6-linux-aarch64.egg/torchvision/transforms/transforms.py:280: UserWarning: The use of the transforms.Scale transform is deprecated, please use transforms.Resize instead. "please use transforms.Resize instead.") Build Executor... /home/kea/temporal-shift-module/online_demo/mobilenet_v2_tsm.py:95: TracerWarning: Converting a tensor to a Python index might cause the trace to be incorrect. We can't record the data flow of Python values, so this value will be treated as a constant in the future. This means that the trace might not generalize to other inputs! x1, x2 = x[:, : c // 8], x[:, c // 8:] [libprotobuf ERROR google/protobuf/descriptor_database.cc:57] File already exists in database: onnx/onnx-ml.proto [libprotobuf FATAL google/protobuf/descriptor.cc:1164] CHECK failed: generateddatabase->Add(encoded_file_descriptor, size): terminate called after throwing an instance of 'google::protobuf::FatalException' what(): CHECK failed: generateddatabase->Add(encoded_file_descriptor, size): Aborted (core dumped)

pdabholkar commented 3 years ago

I am seeing a similar problem Followed the instruction at https://github.com/mit-han-lab/temporal-shift-module/tree/master/online_demo to install the demo on a Jetson Nano Worked through all of the dependencies.

jack-jun commented 2 years ago

Same error here, is there any solution? thanks