EdjeElectronics / TensorFlow-Object-Detection-API-Tutorial-Train-Multiple-Objects-Windows-10

How to train a TensorFlow Object Detection Classifier for multiple object detection on Windows
Apache License 2.0
2.92k stars 1.3k forks source link

issue after pull new tensorflow modification #224

Open leccyril opened 5 years ago

leccyril commented 5 years ago

hi,

i want to simply try your test but i pulled tensorflow version juste before and now i have this error

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/tensorflow/models/research/object_detection/utils/config_util.py", line 99, in get_configs_from_pipeline_file return create_configs_from_pipeline_proto(pipeline_config) File "/home/tensorflow/models/research/object_detection/utils/config_util.py", line 123, in create_configs_from_pipeline_proto configs["eval_input_config"] = configs["eval_input_configs"][0] TypeError: 'InputReader' object does not support indexing

any idea ?

leccyril commented 5 years ago

i deleted the [0] but i don't know if it is OK

Niveditakatta commented 5 years ago

Once I delete the [0], I get issue at next line, if anybody solved this issue, please help. I have followed the same steps from the github

if configs["eval_input_configs"]: configs["eval_input_config"] = configs["eval_input_configs"][0] if pipeline_config.HasField("graph_rewriter"): configs["graph_rewriter_config"] = pipeline_config.graph_rewriter