Skip to content
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

NO MODULE NAMED 'DEPLOYMENT' #43

Open
TechGenius28 opened this issue May 10, 2018 · 5 comments
Open

NO MODULE NAMED 'DEPLOYMENT' #43

TechGenius28 opened this issue May 10, 2018 · 5 comments

Comments

@TechGenius28
Copy link

Hi, I have been getting this problem when I try and train the ai. Please could somebody help me.
Thanks
Error:

`
(tensorflow1) C:\Users\owner\Documents\tensorflow1\models-master\research\object_detection>python train.py --logtostderr --train_dir=training/ --pipeline_config_path=training/faster_rcnn_resnet50_pets.config
Traceback (most recent call last):
File "train.py", line 49, in
from object_detection import trainer
File "C:\Users\owner\Anaconda3\envs\tensorflow1\lib\site-packages\object_detection-0.1-py3.6.egg\object_detection\trainer.py", line 33, in
from deployment import model_deploy
ModuleNotFoundError: No module named 'deployment'

`

@EdjeElectronics
Copy link
Owner

Hi, did you already try the steps listed in the tutorial's Appendix? https://github.com/EdjeElectronics/TensorFlow-Object-Detection-API-Tutorial-Train-Multiple-Objects-Windows-10#appendix-common-errors

@TechGenius28
Copy link
Author

I went through the steps listed, but the same error occurred. Is there any other way to resolve this issue?

Thanks

@Abdou24MR
Copy link

Abdou24MR commented May 23, 2018

its easy :
in folder /models/research
~/.../models/research$ python setup.py build
~/.../models/research$ python setup.py install
2-
-this export commande in linux; if you are woking on windows check (2e. Configure PYTHONPATH environment variable) in : https://github.com/EdjeElectronics/TensorFlow-Object-Detection-API-Tutorial-Train-Multiple-Objects-Windows-10#2e-configure-pythonpath-environment-variable

export PYTHONPATH=$PYTHONPATH:/home/najat/anaconda3/test22222222/models
export PYTHONPATH=$PYTHONPATH:/home/najat/anaconda3/test22222222/models/research
export PYTHONPATH=$PYTHONPATH:/home/najat/anaconda3/test22222222/models/research/slim

3- in folder /models/research/object_detection:
~/.../models/research/object_detection$ python train.py --logtostderr --train_dir=training/ --pipeline_config_path=training/faster_rcnn_inception_v2_pets.config

thats all 👍

@MinaYousryGhattas
Copy link

MinaYousryGhattas commented Dec 11, 2018

For windows if you are using anaconda add slim folder to
...\Anaconda3\envs\{Environment name}\Lib\site-packages\object_detection-0.1-py3.6.egg
and change
from deployment import model_deploy
to
from slim.deployment import model_deploy

@eshwarkamal
Copy link

For windows if you are using anaconda add slim folder to
...\Anaconda3\envs{Environment name}\Lib\site-packages\object_detection-0.1-py3.6.egg
and change
from deployment import model_deploy
to
from slim.deployment import model_deploy

can u tell how to open .egg file and change it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants