tensorflow / tensorflow/models

getting this error trying to execute model_main_tf2.py file. please help

Open
#8,851 6 comments 0 reactions 3 assignees View on GitHub

@pkulzc is already working on this.

Since Jul 13, 2020.

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

Description

Traceback (most recent call last):
File "model_main.py", line 108, in
tf.app.run()
File "/home/rahul/anaconda3/lib/python3.7/site-packages/tensorflow/python/platform/app.py", line 40, in run
_run(main=main, argv=argv, flags_parser=_parse_flags_tolerate_undef)
File "/home/rahul/.local/lib/python3.7/site-packages/absl/app.py", line 299, in run
_run_main(main, args)
File "/home/rahul/.local/lib/python3.7/site-packages/absl/app.py", line 250, in _run_main
sys.exit(main(argv))
File "model_main.py", line 70, in main
FLAGS.sample_1_of_n_eval_on_train_examples))
File "/home/rahul/models/research/object_detection/model_lib.py", line 746, in create_estimator_and_inputs
pipeline_config_path, config_override=config_override)
File "/home/rahul/models/research/object_detection/utils/config_util.py", line 139, in get_configs_from_pipeline_file
text_format.Merge(proto_str, pipeline_config)
File "/home/rahul/anaconda3/lib/python3.7/site-packages/google/protobuf/text_format.py", line 734, in Merge
allow_unknown_field=allow_unknown_field)
File "/home/rahul/anaconda3/lib/python3.7/site-packages/google/protobuf/text_format.py", line 802, in MergeLines
return parser.MergeLines(lines, message)
File "/home/rahul/anaconda3/lib/python3.7/site-packages/google/protobuf/text_format.py", line 827, in MergeLines
self._ParseOrMerge(lines, message)
File "/home/rahul/anaconda3/lib/python3.7/site-packages/google/protobuf/text_format.py", line 849, in _ParseOrMerge
self._MergeField(tokenizer, message)
File "/home/rahul/anaconda3/lib/python3.7/site-packages/google/protobuf/text_format.py", line 974, in _MergeField
merger(tokenizer, message, field)
File "/home/rahul/anaconda3/lib/python3.7/site-packages/google/protobuf/text_format.py", line 1047, in _MergeMessageField
raise tokenizer.ParseErrorPreviousToken('Expected "%s".' % (end_token,))
google.protobuf.text_format.ParseError: 197:1 : Expected "}".

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.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.