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

get error "google/protobuf/pyext/descriptor.cc:358: bad argument to internal function" #19

Closed
ChengYao0209 opened this issue Aug 2, 2022 · 3 comments

Comments

@ChengYao0209
Copy link

Dears

When I try to operate "python main.py --model-path yolov5l.pt --img-path images/cat-dog.jpg --output-dir outputs"
and I get this error

Traceback (most recent call last):
File "main.py", line 6, in
from models.yolo_v5_object_detector import YOLOV5TorchObjectDetector
File "/content/yolov5-gradcam/models/yolo_v5_object_detector.py", line 2, in
from deep_utils.utils.box_utils.boxes import Box
File "/usr/local/lib/python3.7/dist-packages/deep_utils/init.py", line 10, in
from .vision import *
File "/usr/local/lib/python3.7/dist-packages/deep_utils/vision/init.py", line 1, in
from .face_detection import *
File "/usr/local/lib/python3.7/dist-packages/deep_utils/vision/face_detection/init.py", line 49, in
from deep_utils.vision.face_detection.ultralight.tf.ultralight_tf_face_detection import (
File "/usr/local/lib/python3.7/dist-packages/deep_utils/vision/face_detection/ultralight/tf/ultralight_tf_face_detection.py", line 17, in
from .utils.rfb_320 import create_rfb_net
File "/usr/local/lib/python3.7/dist-packages/deep_utils/vision/face_detection/ultralight/tf/utils/rfb_320.py", line 1, in
import tensorflow as tf
File "/usr/local/lib/python3.7/dist-packages/tensorflow/init.py", line 37, in
from tensorflow.python.tools import module_util as _module_util
File "/usr/local/lib/python3.7/dist-packages/tensorflow/python/init.py", line 37, in
from tensorflow.python.eager import context
File "/usr/local/lib/python3.7/dist-packages/tensorflow/python/eager/context.py", line 29, in
from tensorflow.core.framework import function_pb2
File "/usr/local/lib/python3.7/dist-packages/tensorflow/core/framework/function_pb2.py", line 16, in
from tensorflow.core.framework import attr_value_pb2 as tensorflow_dot_core_dot_framework_dot_attr__value__pb2
File "/usr/local/lib/python3.7/dist-packages/tensorflow/core/framework/attr_value_pb2.py", line 16, in
from tensorflow.core.framework import tensor_pb2 as tensorflow_dot_core_dot_framework_dot_tensor__pb2
File "/usr/local/lib/python3.7/dist-packages/tensorflow/core/framework/tensor_pb2.py", line 16, in
from tensorflow.core.framework import resource_handle_pb2 as tensorflow_dot_core_dot_framework_dot_resource__handle__pb2
File "/usr/local/lib/python3.7/dist-packages/tensorflow/core/framework/resource_handle_pb2.py", line 150, in
'module' : 'tensorflow.core.framework.resource_handle_pb2'
SystemError: google/protobuf/pyext/descriptor.cc:358: bad argument to internal function

Could you tell me how to solve this error?

@ahmetfurkaann
Copy link

I keep getting the same error. If anyone knows the solution, it would be great.

@pooya-mohammadi
Copy link
Owner

@ahmetfurkaann
@ChengYao0209
The issue is solved

@ahmetfurkaann
Copy link

Thank you

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

3 participants