PS D:\RealTimeObjectDetection> python Tensorflow/models/research/object_detection/model_main_tf2.py --model_dir=Tensorflow/workspace/models/my_ssd_mobnet --pipeline_config_path=Tensorflow/workspace/models/my_ssd_mobnet/pipeline.config --num_train_steps=10000
Traceback (most recent call last):
File "D:\RealTimeObjectDetection\Tensorflow\models\research\object_detection\model_main_tf2.py", line 31, in
import model_lib_v2
File "D:\RealTimeObjectDetection\Tensorflow\models\research\object_detection\model_lib_v2.py", line 29, in
import eval_util
File "D:\RealTimeObjectDetection\Tensorflow\models\research\object_detection\eval_util.py", line 35, in
from object_detection.metrics import coco_evaluation
File "D:\RealTimeObjectDetection\Tensorflow\models\research\object_detection\metrics\coco_evaluation.py", line 28, in
from object_detection.utils import object_detection_evaluation
File "D:\RealTimeObjectDetection\Tensorflow\models\research\object_detection\utils\object_detection_evaluation.py", line 46, in
from object_detection.utils import label_map_util
File "D:\RealTimeObjectDetection\Tensorflow\models\research\object_detection\utils\label_map_util.py", line 29, in
from object_detection.protos import string_int_label_map_pb2
File "D:\RealTimeObjectDetection\Tensorflow\models\research\object_detection\protos\string_int_label_map_pb2.py", line 9, in
from google.protobuf import runtime_version as _runtime_version
ImportError: cannot import name 'runtime_version' from 'google.protobuf' (C:\Users\varda\AppData\Local\Programs\Python\Python311\Lib\site-packages\google\protobuf\__init__.py)
Это ошибка версии? также я попытался установить переменную PYTHONPATH в переменных пользователя, но компилятор все еще ищет в пакетах сайта файл object_detection, тогда как я установил путь к другому месту на диске D
[code]PS D:\RealTimeObjectDetection> python Tensorflow/models/research/object_detection/model_main_tf2.py --model_dir=Tensorflow/workspace/models/my_ssd_mobnet --pipeline_config_path=Tensorflow/workspace/models/my_ssd_mobnet/pipeline.config --num_train_steps=10000 Traceback (most recent call last): File "D:\RealTimeObjectDetection\Tensorflow\models\research\object_detection\model_main_tf2.py", line 31, in import model_lib_v2 File "D:\RealTimeObjectDetection\Tensorflow\models\research\object_detection\model_lib_v2.py", line 29, in import eval_util File "D:\RealTimeObjectDetection\Tensorflow\models\research\object_detection\eval_util.py", line 35, in from object_detection.metrics import coco_evaluation File "D:\RealTimeObjectDetection\Tensorflow\models\research\object_detection\metrics\coco_evaluation.py", line 28, in from object_detection.utils import object_detection_evaluation File "D:\RealTimeObjectDetection\Tensorflow\models\research\object_detection\utils\object_detection_evaluation.py", line 46, in from object_detection.utils import label_map_util File "D:\RealTimeObjectDetection\Tensorflow\models\research\object_detection\utils\label_map_util.py", line 29, in from object_detection.protos import string_int_label_map_pb2 File "D:\RealTimeObjectDetection\Tensorflow\models\research\object_detection\protos\string_int_label_map_pb2.py", line 9, in from google.protobuf import runtime_version as _runtime_version ImportError: cannot import name 'runtime_version' from 'google.protobuf' (C:\Users\varda\AppData\Local\Programs\Python\Python311\Lib\site-packages\google\protobuf\__init__.py) [/code] Это ошибка версии? также я попытался установить переменную PYTHONPATH в переменных пользователя, но компилятор все еще ищет в пакетах сайта файл object_detection, тогда как я установил путь к другому месту на диске D