tensorflow / tensorflow/models

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

Open
#13,518 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

models:research type:bug
Dominant language
Python
Stars
77.7k
Forks
44.8k
PR merge metrics
No merged PRs in 30d

Description

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

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the pipeline configuration consumed by model_main_tf2.py and the traceback path through object_detection/model_lib_v2.py and object_detection/utils/config_util.py. Compare the configuration used for centernet_modelnetv2_fpn_512x512_coco17_od with the DetectionModel fields available to the installed package. Done means the configuration parses without the reported field error and training reaches the next stage.

Written by the indexing model from the issue text.

Assessment

Tech stack
python, tensorflow
Domain
machine-learning
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.