tensorflow / models

Models and examples built with TensorFlow
Other
77.04k stars 45.77k forks source link

Error in models defined under research folder -> "object_detection.protos.StringIntLabelMap" has 'no field named node'. #8181

Open yugaljain1999 opened 4 years ago

yugaljain1999 commented 4 years ago

2020-02-19 18:13:17.900514: W tensorflow/stream_executor/platform/default/dso_loader.cc:55] Could not load dynamic library 'libnvinfer.so.6'; dlerror: libnvinfer.so.6: cannot open shared object file: No such file or directory; LD_LIBRARY_PATH: /usr/local/nvidia/lib:/usr/local/nvidia/lib64 2020-02-19 18:13:17.900660: W tensorflow/stream_executor/platform/default/dso_loader.cc:55] Could not load dynamic library 'libnvinfer_plugin.so.6'; dlerror: libnvinfer_plugin.so.6: cannot open shared object file: No such file or directory; LD_LIBRARY_PATH: /usr/local/nvidia/lib:/usr/local/nvidia/lib64 2020-02-19 18:13:17.900681: W tensorflow/compiler/tf2tensorrt/utils/py_utils.cc:30] Cannot dlopen some TensorRT libraries. If you would like to use Nvidia GPU with TensorRT, please make sure the missing libraries mentioned above are installed properly. [ WARN:0] global /io/opencv/modules/videoio/src/cap_v4l.cpp (802) open VIDEOIO ERROR: V4L: can't open camera by index 0 Traceback (most recent call last): File "/usr/local/lib/python3.6/dist-packages/object_detection/utils/label_map_util.py", line 142, in load_labelmap text_format.Merge(label_map_string, label_map) File "/usr/local/lib/python3.6/dist-packages/google/protobuf/text_format.py", line 702, in Merge allow_unknown_field=allow_unknown_field) File "/usr/local/lib/python3.6/dist-packages/google/protobuf/text_format.py", line 770, in MergeLines return parser.MergeLines(lines, message) File "/usr/local/lib/python3.6/dist-packages/google/protobuf/text_format.py", line 795, in MergeLines self._ParseOrMerge(lines, message) File "/usr/local/lib/python3.6/dist-packages/google/protobuf/text_format.py", line 817, in _ParseOrMerge self._MergeField(tokenizer, message) File "/usr/local/lib/python3.6/dist-packages/google/protobuf/text_format.py", line 909, in _MergeField (message_descriptor.full_name, name)) google.protobuf.text_format.ParseError: 1:1 : Message type "object_detection.protos.StringIntLabelMap" has no field named "node".

How should I resolve this error? I was using Faster-RCNN pretrained model and when I run main file I got this error.. google.protobuf.text_format.ParseError: 1:1 : Message type "object_detection.protos.StringIntLabelMap" has no field named "node".

Please help me to solve this error..

monchichi27 commented 4 years ago

Traceback (most recent call last): File "D:\workspace\models-master\research\object_detection\utils\label_map_util.py", line 155, in load_labelmap text_format.Merge(label_map_string, label_map) File "D:\Program Files\Anaconda3\envs\py36\lib\site-packages\google\protobuf\text_format.py", line 702, in Merge allow_unknown_field=allow_unknown_field) File "D:\Program Files\Anaconda3\envs\py36\lib\site-packages\google\protobuf\text_format.py", line 770, in MergeLines return parser.MergeLines(lines, message) File "D:\Program Files\Anaconda3\envs\py36\lib\site-packages\google\protobuf\text_format.py", line 795, in MergeLines self._ParseOrMerge(lines, message) File "D:\Program Files\Anaconda3\envs\py36\lib\site-packages\google\protobuf\text_format.py", line 817, in _ParseOrMerge self._MergeField(tokenizer, message) File "D:\Program Files\Anaconda3\envs\py36\lib\site-packages\google\protobuf\text_format.py", line 909, in _MergeField (message_descriptor.full_name, name)) google.protobuf.text_format.ParseError: 1:1 : Message type "object_detection.protos.StringIntLabelMap" has no field named "node".

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "object_detection\detect_test.py", line 34, in label_map = label_map_util.load_labelmap(PATH_TO_LABELS) File "D:\workspace\models-master\research\object_detection\utils\label_map_util.py", line 157, in load_labelmap label_map.ParseFromString(label_map_string) File "D:\Program Files\Anaconda3\envs\py36\lib\site-packages\google\protobuf\message.py", line 187, in ParseFromString return self.MergeFromString(serialized) File "D:\Program Files\Anaconda3\envs\py36\lib\site-packages\google\protobuf\internal\python_message.py", line 1124, in MergeFromString serialized = memoryview(serialized) TypeError: memoryview: a bytes-like object is required, not 'str'

I have the same error with you. Have you find the reason?

yugaljain1999 commented 4 years ago

No, I didn't get any solution yet.

eusojk commented 3 years ago

@yugaljain1999, did you have the chance to figure this one out by any chance?

yugaljain1999 commented 3 years ago

@eusojk No, I didn't get any solution of this. I think tf developers needs to fix this.