probuf version problem
MyraBaba opened this issue · comments
Search before asking
- I have searched the Yolov7_StrongSORT_OSNet issues and discussions and found no similar questions.
Yolov7_StrongSORT_OSNet Component
Other
Bug
here
python3 track.py --source ~/DATA/Videos/hiv00038.mp4 --yolo-weights yolov7-e6e.pt --img 1280
strong_sort/deep/reid/torchreid/metrics/rank.py:11: UserWarning: Cython evaluation (very fast so highly recommended) is unavailable, now use python evaluation.
warnings.warn(
Traceback (most recent call last):
File "track.py", line 38, in
from strong_sort.utils.parser import get_config
File "/home/alp2080/Projects/Yolov7_StrongSORT_OSNet/strong_sort/init.py", line 1, in
from .strong_sort import StrongSORT
File "/home/alp2080/Projects/Yolov7_StrongSORT_OSNet/strong_sort/strong_sort.py", line 9, in
from .sort.nn_matching import NearestNeighborDistanceMetric
File "/home/alp2080/Projects/Yolov7_StrongSORT_OSNet/strong_sort/sort/nn_matching.py", line 6, in
from torchreid.metrics.distance import compute_distance_matrix
File "strong_sort/deep/reid/torchreid/init.py", line 3, in
from torchreid import data, optim, utils, engine, losses, models, metrics
File "strong_sort/deep/reid/torchreid/engine/init.py", line 3, in
from .image import ImageSoftmaxEngine, ImageTripletEngine
File "strong_sort/deep/reid/torchreid/engine/image/init.py", line 3, in
from .softmax import ImageSoftmaxEngine
File "strong_sort/deep/reid/torchreid/engine/image/softmax.py", line 6, in
from ..engine import Engine
File "strong_sort/deep/reid/torchreid/engine/engine.py", line 9, in
from torch.utils.tensorboard import SummaryWriter
File "/home/alp2080/Projects/Yolov7_StrongSORT_OSNet/venvYolov7Stronsort/lib/python3.8/site-packages/torch/utils/tensorboard/init.py", line 12, in
from .writer import FileWriter, SummaryWriter # noqa: F401
File "/home/alp2080/Projects/Yolov7_StrongSORT_OSNet/venvYolov7Stronsort/lib/python3.8/site-packages/torch/utils/tensorboard/writer.py", line 9, in
from tensorboard.compat.proto.event_pb2 import SessionLog
File "/home/alp2080/Projects/Yolov7_StrongSORT_OSNet/venvYolov7Stronsort/lib/python3.8/site-packages/tensorboard/compat/proto/event_pb2.py", line 17, in
from tensorboard.compat.proto import summary_pb2 as tensorboard_dot_compat_dot_proto_dot_summary__pb2
File "/home/alp2080/Projects/Yolov7_StrongSORT_OSNet/venvYolov7Stronsort/lib/python3.8/site-packages/tensorboard/compat/proto/summary_pb2.py", line 17, in
from tensorboard.compat.proto import tensor_pb2 as tensorboard_dot_compat_dot_proto_dot_tensor__pb2
File "/home/alp2080/Projects/Yolov7_StrongSORT_OSNet/venvYolov7Stronsort/lib/python3.8/site-packages/tensorboard/compat/proto/tensor_pb2.py", line 16, in
from tensorboard.compat.proto import resource_handle_pb2 as tensorboard_dot_compat_dot_proto_dot_resource__handle__pb2
File "/home/alp2080/Projects/Yolov7_StrongSORT_OSNet/venvYolov7Stronsort/lib/python3.8/site-packages/tensorboard/compat/proto/resource_handle_pb2.py", line 16, in
from tensorboard.compat.proto import tensor_shape_pb2 as tensorboard_dot_compat_dot_proto_dot_tensor__shape__pb2
File "/home/alp2080/Projects/Yolov7_StrongSORT_OSNet/venvYolov7Stronsort/lib/python3.8/site-packages/tensorboard/compat/proto/tensor_shape_pb2.py", line 36, in
_descriptor.FieldDescriptor(
File "/home/alp2080/Projects/Yolov7_StrongSORT_OSNet/venvYolov7Stronsort/lib/python3.8/site-packages/google/protobuf/descriptor.py", line 560, in new
_message.Message._CheckCalledFromGeneratedFile()
TypeError: Descriptors cannot not 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:
- Downgrade the protobuf package to 3.20.x or lower.
- Set PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=python (but this will use pure-Python parsing and will be much slower).
More information: https://developers.google.com/protocol-buffers/docs/news/2022-05-06#python-updates
Environment
No response
Minimal Reproducible Example
No response
👋 Hello, this issue has been automatically marked as stale because it has not had recent activity. Please note it will be closed if no further activity occurs.
Feel free to inform us of any other issues you discover or feature requests that come to mind in the future. Pull Requests (PRs) are also always welcomed!