-
Notifications
You must be signed in to change notification settings - Fork 45.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
getting this error trying to execute model_main_tf2.py file. please help #8851
Comments
Hi, It seems the error is related to your config file. Possibly a '}' is missing. Could you please share which config file you are using? Thanks! |
Thank You got it actually eval_input_reader }.was missing. Really Appreciate your response. |
AttributeError: 'WeightSharedConvolutionalBoxPredictor' object has no attribute 'inputs' |
Please provide more info about your error. I can't tell anything from that AttributeError. |
@pkulzc @rkpawar0995 even i'm getting the similar error after trying to train the model using below code I get the below error.. |
Running model_main_tf2.py instead of model_main.py solved the problem (AttributeError: 'WeightSharedConvolutionalBoxPredictor' object has no attribute 'inputs') for me. |
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 "}".
The text was updated successfully, but these errors were encountered: