ImportError: cannot import name 'trainer'
I installed the object detection API correctly in my windows using this https://github.com/tensorflow/models/blob/master/research/object_detection/g3doc/installation.
under this instructioin.and I checked by running model_builder_test.py This gave me a OK result. and I run the demo ,it is OK too.
Then I moved on to running the train.py on my dataset using the following command
python train.py --logtostderr --pipeline_config_path=pipeline.config --train_dir=train_file
Got the following result:
ImportError Traceback (most recent call last)
E:\raccoon_dataset-master\train.py in
ImportError: cannot import name 'trainer'
Thank you for your post. We noticed you have not filled out the following field in the issue template. Could you update them if they are relevant in your case, or leave them as N/A? Thanks. What is the top-level directory of the model you are using Have I written custom code OS Platform and Distribution TensorFlow installed from TensorFlow version Bazel version CUDA/cuDNN version GPU model and memory Exact command to reproduce
from object_detection/legacy import trainer can fix
thank you ,I use from object_detection.legacy import trainer ,the problem solve
thank you ,I use from object_detection.legacy import trainer ,the problem solve
Can you give me the other version of object detection ?
ImportError: cannot import name 'trainer' from 'object_detection.legacy' (C:\tensorflow1\models\research\object_detection\legacy_init_.py)
How can I fix this error
make sure all the original files from the legacy dir are still there (trainer.py for example)