Please go to Stack Overflow for help and support:
http://stackoverflow.com/questions/tagged/tensorflow
Also, please understand that many of the models included in this repository are experimental and research-style code. If you open a GitHub issue, here is our policy:
_object_detection_
_No_
_Debian 9_
_intalled from github source_
_1.8.0 (updated from git today)_
_python legacy/train.py --logtostderr --train_dir=training/ --pipeline_config_path=training/faster_rcnn_inception_v2_pets.config_
train is not working anymore from github tensorflow last update
WARNING:tensorflow:From /usr/local/lib/python3.5/dist-packages/tensorflow/python/platform/app.py:126: main (from __main__) is deprecated and will be removed in a future version.
Instructions for updating:
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/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
Hi!!
Similar issue.
Thank you!!
System information
What is the top-level directory of the model you are using:
object_detection
Have I written custom code (as opposed to using a stock example script provided in TensorFlow):
No
OS Platform and Distribution (e.g., Linux Ubuntu 16.04):
Windows 10
TensorFlow installed from (source or binary):
last binary Miniconda pip install : tensorflow 1.12.0 / tensorflow-gpu 1.12.0
Python 3.6.5 :: Anaconda, Inc.
TensorFlow version (use command below):
tensorflow 1.12.0 / tensorflow-gpu 1.12.0
tensorflow models from Github (https://github.com/tensorflow/models) master branch 5 day ago
Bazel version (if compiling from source):
CUDA/cuDNN version:
9.0
GPU model and memory:
GTX 1080 / 8Gb
Exact command to reproduce:
python legacy\train.py --logtostderr --train_dir=training/ --pipeline_config_path=training/faster_rcnn_inception_v2_pets.config
Describe the problem
train is not working for faster_rcnn_inception_v2 model
Source code / logs
D:\imgdetect\models\research\object_detection>python legacytrain.py --logtostderr --train_dir=training/ --pipeline_config_path=training/faster_rcnn_inception_v2_pets.config
WARNING:tensorflow:From C:\Miniconda3lib\site-packagestensorflowpythonplatformapp.py:125: main (from __main__) is deprecated and will be removed in a future version.
Instructions for updating:
Use object_detection/model_main.py.
Traceback (most recent call last):
File "legacytrain.py", line 184, in
tf.app.run()
File "C:\Miniconda3lib\site-packagestensorflowpythonplatformapp.py", line 125, in run
_sys.exit(main(argv))
File "C:\Miniconda3lib\site-packagestensorflowpythonutil\deprecation.py", line 306, in new_func
return func(args, *kwargs)
File "legacytrain.py", line 93, in main
FLAGS.pipeline_config_path)
File "D:\imgdetect\models\research\object_detectionutilsconfig_util.py", line 99, in get_configs_from_pipeline_file
return create_configs_from_pipeline_proto(pipeline_config)
File "D:\imgdetect\models\research\object_detectionutilsconfig_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
i simply delete [0], it is working but i don't not if working well
Thanks, @leccyril. Now it's running ... But ...is it working? (I have the same question)
i tried it and i have this result


i don't know if it is working well because in the tutorial all boxes are annotated but here it detect something but i have not the name so it is working well ?
I think you have a mismatch version of tensorflow and tensorflow/model . Do a pull for both and check if the problem is still there. For me I use tensorflow 1.10.1 and revert back to this commit solve the problem https://github.com/tensorflow/models/pull/4255
Hope that helps
Hi thank you, i updated first tensorflow model, then update tensorflow to version 1.12 i dont want to revert tensorflow version because i dont know if downgrade several versions will fix issue, but i can try it
Nobody have last version of tensorflow and working d茅tection ?
I had the same error, but it was solved.
In my case, it was caused by not having recompiled protobuf libraries with the new models sources.
(object_detection/protos/*.proto)
agree with shigeyuki-jp. I've solved this problem by reinstalling protobuf and regenerate all the files in object_detection/protos/*.proto.
Hi There,
We are checking to see if you still need help on this, as this seems to be an old issue. Please update this issue with the latest information, code snippet to reproduce your issue and error you are seeing.
If we don't hear from you in the next 7 days, this issue will be closed automatically. If you don't need help on this issue any more, please consider closing this.
Most helpful comment
I had the same error, but it was solved.
In my case, it was caused by not having recompiled protobuf libraries with the new models sources.
(object_detection/protos/*.proto)