Message type "object_detection.protos.DetectionModel" has no field named "center_net"

Đang mở
#13,518 1 bình luận 0 reaction 0 người được giao Xem trên GitHub

@DeborahOlaboye đang làm issue này rồi.

Từ ngày 26/1/2026.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
25/100
Loại issue
Lỗi
Độ rõ ràng
Cần làm rõ
Mức độ hoạt động
Đình trệ
Công nghệ
python, tensorflow
Lĩnh vực
machine-learning

Hướng nghiên cứu

Bắt đầu với cấu hình pipeline được model_main_tf2.py sử dụng và đường dẫn traceback qua object_detection/model_lib_v2.py và object_detection/utils/config_util.py. So sánh cấu hình được sử dụng cho centernet_modelnetv2_fpn_512x512_coco17_od với các trường DetectionModel có sẵn trong package đã cài đặt. Được xem là hoàn tất khi cấu hình được phân tích mà không gặp lỗi trường đã báo cáo và quá trình huấn luyện đạt đến giai đoạn tiếp theo.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

models:research type:bug

I am trying to train from centernet_modelnetv2_fpn_512x512_coco17_od model but I am getting this error:
WARNING:tensorflow:From /home/server/miniforge3/envs/iBoard/lib/python3.9/site-packages/tensorflow/python/compat/v2_compat.py:101: disable_resource_variables (from tensorflow.python.ops.variable_scope) is deprecated and will be removed in a future version. Instructions for updating: non-resource variables are not supported in the long term 2025-01-02 21:00:02.368810: W tensorflow/stream_executor/platform/default/dso_loader.cc:64] Could not load dynamic library 'libcuda.so.1'; dlerror: libcuda.so.1: cannot open shared object file: No such file or directory 2025-01-02 21:00:02.368888: W tensorflow/stream_executor/cuda/cuda_driver.cc:269] failed call to cuInit: UNKNOWN ERROR (303) 2025-01-02 21:00:02.368943: I tensorflow/stream_executor/cuda/cuda_diagnostics.cc:156] kernel driver does not appear to be running on this host (server): /proc/driver/nvidia/version does not exist 2025-01-02 21:00:02.369919: I tensorflow/core/platform/cpu_feature_guard.cc:142] This TensorFlow binary is optimized with oneAPI Deep Neural Network Library (oneDNN) to use the following CPU instructions in performance-critical operations: SSE4.1 SSE4.2 To enable them in other operations, rebuild TensorFlow with the appropriate compiler flags. WARNING:tensorflow:There are non-GPU devices in tf.distribute.Strategy, not using nccl allreduce. W0102 21:00:02.374615 140292573689664 cross_device_ops.py:1387] There are non-GPU devices in tf.distribute.Strategy, not using nccl allreduce. INFO:tensorflow:Using MirroredStrategy with devices ('/replica:0/task:0/device:CPU:0',) I0102 21:00:02.379850 140292573689664 mirrored_strategy.py:369] Using MirroredStrategy with devices ('/replica:0/task:0/device:CPU:0',) Traceback (most recent call last): File "/home/server/Tensorflow/workspace/training/model_main_tf2.py", line 114, in <module> tf.compat.v1.app.run() File "/home/server/miniforge3/envs/iBoard/lib/python3.9/site-packages/tensorflow/python/platform/app.py", line 40, in run _run(main=main, argv=argv, flags_parser=_parse_flags_tolerate_undef) File "/home/server/miniforge3/envs/iBoard/lib/python3.9/site-packages/absl/app.py", line 312, in run _run_main(main, args) File "/home/server/miniforge3/envs/iBoard/lib/python3.9/site-packages/absl/app.py", line 258, in _run_main sys.exit(main(argv)) File "/home/server/Tensorflow/workspace/training/model_main_tf2.py", line 105, in main model_lib_v2.train_loop( File "/home/server/miniforge3/envs/iBoard/lib/python3.9/site-packages/object_detection/model_lib_v2.py", line 505, in train_loop configs = get_configs_from_pipeline_file( File "/home/server/miniforge3/envs/iBoard/lib/python3.9/site-packages/object_detection/utils/config_util.py", line 98, in get_configs_from_pipeline_file text_format.Merge(proto_str, pipeline_config) File "/home/server/miniforge3/envs/iBoard/lib/python3.9/site-packages/google/protobuf/text_format.py", line 719, in Merge return MergeLines( File "/home/server/miniforge3/envs/iBoard/lib/python3.9/site-packages/google/protobuf/text_format.py", line 793, in MergeLines return parser.MergeLines(lines, message) File "/home/server/miniforge3/envs/iBoard/lib/python3.9/site-packages/google/protobuf/text_format.py", line 818, in MergeLines self._ParseOrMerge(lines, message) File "/home/server/miniforge3/envs/iBoard/lib/python3.9/site-packages/google/protobuf/text_format.py", line 837, in _ParseOrMerge self._MergeField(tokenizer, message) File "/home/server/miniforge3/envs/iBoard/lib/python3.9/site-packages/google/protobuf/text_format.py", line 967, in _MergeField merger(tokenizer, message, field) File "/home/server/miniforge3/envs/iBoard/lib/python3.9/site-packages/google/protobuf/text_format.py", line 1042, in _MergeMessageField self._MergeField(tokenizer, sub_message) File "/home/server/miniforge3/envs/iBoard/lib/python3.9/site-packages/google/protobuf/text_format.py", line 932, in _MergeField raise tokenizer.ParseErrorPreviousToken( google.protobuf.text_format.ParseError: 2:3 : Message type "object_detection.protos.DetectionModel" has no field named "center_net".

OS: Debian 12
Tensorflow 2.x
Miniforge3

Pls help me, Thank you

Ngôn ngữ chính
Python
Star
77.6k
Fork
44.8k
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của tensorflow/models

Tất cả issue của tensorflow/models

Issue tương tự

Thêm issue về Python

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.