tensorflow / models

Models and examples built with TensorFlow
Other
77.16k stars 45.75k forks source link

object_detection: google.protobuf.text_format.ParseError: 143:1 : Message type "object_detection.protos.EvalConfig" has no field named "eval_input_reader" when I run faster-rcnn-nas. #5007

Closed jixiaonanzhuaizhuai closed 5 years ago

jixiaonanzhuaizhuai commented 6 years ago

When I use model faster-rcnn_nas with my own data for training, I get a error message (CUDA_VISIBLE_DEVICES=1 python3 model_main.py --logtostderr --pipeline_config_path=modelH/faster_rcnn_nas_coco.config --model_dir=modelH/train ):

Use object_detection/model_main.py. Traceback (most recent call last): File "legacy/train.py", line 184, in tf.app.run() File "/usr/local/lib/python3.5/dist-packages/tensorflow/python/platform/app.py", line 126, in run _sys.exit(main(argv)) File "/usr/local/lib/python3.5/dist-packages/tensorflow/python/util/deprecation.py", line 250, in new_func return func(*args, **kwargs) File "legacy/train.py", line 93, in main FLAGS.pipeline_config_path) File "/home/ubuntu/.local/lib/python3.5/site-packages/tensorflow/models-master/research/object_detection/utils/config_util.py", line 94, in get_configs_from_pipeline_file text_format.Merge(proto_str, pipeline_config) File "/home/ubuntu/.local/lib/python3.5/site-packages/google/protobuf/text_format.py", line 533, in Merge descriptor_pool=descriptor_pool) File "/home/ubuntu/.local/lib/python3.5/site-packages/google/protobuf/text_format.py", line 587, in MergeLines return parser.MergeLines(lines, message) File "/home/ubuntu/.local/lib/python3.5/site-packages/google/protobuf/text_format.py", line 620, in MergeLines self._ParseOrMerge(lines, message) File "/home/ubuntu/.local/lib/python3.5/site-packages/google/protobuf/text_format.py", line 635, in _ParseOrMerge self._MergeField(tokenizer, message) File "/home/ubuntu/.local/lib/python3.5/site-packages/google/protobuf/text_format.py", line 735, in _MergeField merger(tokenizer, message, field) File "/home/ubuntu/.local/lib/python3.5/site-packages/google/protobuf/text_format.py", line 823, in _MergeMessageField self._MergeField(tokenizer, sub_message) File "/home/ubuntu/.local/lib/python3.5/site-packages/google/protobuf/text_format.py", line 703, in _MergeField (message_descriptor.full_name, name)) google.protobuf.text_format.ParseError: 143:1 : Message type "object_detection.protos.EvalConfig" has no field named "eval_input_reader".

my protoc --version : 3.5.1

my tensorflow : 1.6.0

my GUP : -----------------------------------------------------------------------------+ | NVIDIA-SMI 384.130 Driver Version: 384.130 | |-------------------------------+----------------------+----------------------+ | GPU Name Persistence-M| Bus-Id Disp.A | Volatile Uncorr. ECC | | Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. | |===============================+======================+======================| | 0 GeForce GTX 108... Off | 00000000:02:00.0 On | N/A | | 51% 84C P2 156W / 250W | 10539MiB / 11170MiB | 95% Default | +-------------------------------+----------------------+----------------------+ | 1 GeForce GTX 108... Off | 00000000:03:00.0 Off | N/A | | 46% 68C P8 22W / 250W | 10786MiB / 11172MiB | 0% Default | +-------------------------------+----------------------+----------------------+ | 2 GeForce GTX 108... Off | 00000000:82:00.0 Off | N/A | | 62% 85C P2 102W / 250W | 10788MiB / 11172MiB | 91% Default | +-------------------------------+----------------------+----------------------+ | 3 GeForce GTX 108... Off | 00000000:83:00.0 Off | N/A | | 30% 49C P8 18W / 250W | 10592MiB / 11172MiB | 0% Default | +-------------------------------+----------------------+----------------------+

+-----------------------------------------------------------------------------+ | Processes: GPU Memory | | GPU PID Type Process name Usage | |=============================================================================| | 0 1574 G /usr/lib/xorg/Xorg 84MiB | | 0 28929 C python 10343MiB | | 0 37191 G compiz 95MiB | | 0 46611 G /opt/teamviewer/tv_bin/TeamViewer 11MiB | | 1 18207 C python3 10775MiB | | 2 20236 C python3 10775MiB | | 3 16837 C python 10579MiB | +----------------------------------------------------------------------------

Can you give me some solutions?

tensorflowbutler commented 6 years ago

Thank you for your post. We noticed you have not filled out the following field in the issue template. Could you update them if they are relevant in your case, or leave them as N/A? Thanks. What is the top-level directory of the model you are using Have I written custom code OS Platform and Distribution TensorFlow installed from TensorFlow version Bazel version CUDA/cuDNN version GPU model and memory Exact command to reproduce

jixiaonanzhuaizhuai commented 6 years ago

@tensorflowbutler The top-level directory of the model I am using is "/home/ubuntu/.local/lib/python3.5/site-packages/tensorflow/models-master/research/object_detection/"

I have not written custom code! OS platform: ubuntu 16.04

MaggieLieu commented 6 years ago

I had the same problem, I realised it was because I commented out the following line in the config file:

max_evals: 10}

This then means the eval_config: field is unclosed. You should keep the "}" and it should run

wt-huang commented 5 years ago

Closing as this is resolved