-
Notifications
You must be signed in to change notification settings - Fork 45.8k
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
Bug: if input_config.WhichOneof('input_reader') == 'tf_record_input_reader': AttributeError: 'list' object has no attribute 'WhichOneof' #5924
Comments
Realized that |
Tried hacking my way around by modifying
but I'm afraid that this is going to turn into a real goose chase...
I should also add that I can use these similarly formatted tfrecords for training through model_main.py, so I dont think that they are the problem |
also added the following changes to lines 212 and 355 of object_detection_evaluation.py
and changed line 47 of tf_example_parser.py
to
it now works, if I can figure out how to properly setup pycharm to make a pull request I'll be glad to help |
In utils/config_util.py , there is a function called get_configs_from_mutilple_files. Then delete 's' in the end of 'eval_input_config' and delete the square bracket of eval_input_config. It will ke OK |
hi, i don't find thoses line and i have this error when i launch the train File "/home/tensorflow/models/research/object_detection/utils/config_util.py", line 99, in get_configs_from_pipeline_file any idea ? it is from the new pull today of tensorflow |
@SYangDong what line ? i think in new version there is not what you talking about. No one faces this issue too ? |
@leccyril in line 236. I check the code of its new version. I think the bug still exists. |
for me i change configs["eval_input_config"] = configs["eval_input_configs"][0] to configs["eval_input_config"] = configs["eval_input_configs"] but i don't know if it make the trick @SYangDong i am not a python or tensorflow expert, could you explain with detail what file to change what lines and for example what replace with what , indeed no confusion |
@leccyril As @SYangDong mentioned, in file utils/config_util.py in function get_configs_from_multiple_files change line 236 from |
ok it is more clear, i make the revert on my modification and tried this one , i launched my train to see if it was better... wuile launching eval i had an error with unicode utf8 ... |
Thanks @SYangDong . It works for me. But the AP for all results is -1.0. |
@gfjiyue maybe something wrong with your evaluating metrics. Because COCO evaluation is not supported in the code. if you still want to use coco evaluation, you should change the format of your tfrecord due to the keys' limitation in the codes. |
i also meet this error All the images are skipped , Do you have solve this problem? |
System information
Describe the problem
Getting error
if input_config.WhichOneof('input_reader') == 'tf_record_input_reader': AttributeError: 'list' object has no attribute 'WhichOneof'
while trying to run the Computing evaluation measures example from https://github.com/tensorflow/models/blob/master/research/object_detection/g3doc/oid_inference_and_evaluation.mdalso fixed a typo line 162 offline_eval_map_corloc.py
input_config = configs['eval_input_configs']
(eval_input_configs), at least for coco_metricsSource code / logs
Traceback
Contents of test_eval_config.pbtxt
Contents of test_input_config.pbtxt
If more info is needed please don't hesitate,
Thanks
The text was updated successfully, but these errors were encountered: