question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error: no module named object_detection

See original GitHub issue

I’ve just arrived to the training step but, trying to initialize it (python train.py --logtostderr --train_dir=training/ --pipeline_config_path=training/faster_rcnn_inception_v2_pets.config) it returns this error: from object_detection import trainer ImportError: No module named ‘object_detection’. I alsoadded both models and slim to a env variable named PYTHON PATH (c:\obj\models; c:\obj\models\slim), where are actually these folders.

Issue Analytics

  • State:open
  • Created 5 years ago
  • Comments:5

github_iconTop GitHub Comments

6reactions
uthiraacommented, Jul 25, 2018

@TomSala Make sure you run this when you are in the object_detection folder in your anaconda prompt. If this does not work too, try the following by running this following command from the research folder. SET PYTHONPATH=%cd%;%cd%\slim (if you use Windows) or export PYTHONPATH=$PYTHONPATH:pwd:pwd/slim(if you use Linux)

0reactions
TomSalacommented, Aug 19, 2018

Yes, thank you!

Read more comments on GitHub >

github_iconTop Results From Across the Web

ModuleNotFoundError: No module named 'object_detection'
Well, the only and obvious answer for the error is that the path of the module is not added properly. Besides the various...
Read more >
No module named 'object_detection' · Issue #10113 ... - GitHub
ModuleNotFoundError: No module named 'object_detection' error is thrown due to an error in the installation of the object detection api.
Read more >
ModuleNotFoundError: No module named 'object-detection'
Hi, My Python program is throwing following error: ModuleNotFoundError: No module named 'object-detection' How to remove the M.
Read more >
ModuleNotFoundError: No module named 'object_detection'
Python – ModuleNotFoundError: No module named 'object_detection'. python. i try to train.py in object_detection in under git url. https://github.com/ ...
Read more >
How to fix the «No module named 'object_detection' - Dmitry.AI
How to fix the «No module named 'object_detection'» Python error with TensorFlow? TensorFlow Installation.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found