Open EmraldXd opened 1 week ago
same
TypeError Traceback (most recent call last)
3 frames
/usr/local/lib/python3.10/dist-packages/object_detection/utils/label_map_util.py in
/usr/local/lib/python3.10/dist-packages/object_detection/protos/string_int_label_map_pb2.py in
/usr/local/lib/python3.10/dist-packages/google/protobuf/descriptor.py in new(cls, name, index, number, type, options, serialized_options, create_key) 918 type=None, # pylint: disable=redefined-builtin 919 options=None, serialized_options=None, create_key=None): --> 920 _message.Message._CheckCalledFromGeneratedFile() 921 # There is no way we can build a complete EnumValueDescriptor with the 922 # given parameters (the name of the Enum is not known, for example).
TypeError: Descriptors cannot be created directly. If this call came from a _pb2.py file, your generated code is out of date and must be regenerated with protoc >= 3.19.0. If you cannot immediately regenerate your protos, some other possible workarounds are:
More information: https://developers.google.com/protocol-buffers/docs/news/2022-05-06#python-updates
I've been getting this error when trying to develop a TensorFlow model:
TypeError: Descriptors cannot be created directly. If this call came from a _pb2.py file, your generated code is out of date and must be regenerated with protoc >= 3.19.0. If you cannot immediately regenerate your protos, some other possible workarounds are:
Set PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=python (but this will use pure-Python parsing and will be much slower).
I've tried the limelight help page, google gemini suggestions, and restarting my session multiple times. This is recent because it worked for one file, but now fails when I use the file that succeeded before.