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
ImportError: No module named utils #1747
Comments
Hi @SaleheErfanianEbadi - what directory are you running the notebook from and have you set your PYTHONPATH correctly? |
in your python file, add this lines at beginning: import sys |
Make sure that you correctly install object detection: https://github.com/tensorflow/models/blob/master/object_detection/g3doc/installation.md |
if you are running object_detection. |
from utils import label_map_util ModuleNotFoundError: No module named 'utils' no working for me :( |
Why not run in other folder ??? |
Because the utils folder is in the object_detection folder. You can import utils from another folder if you add object_detection to your python path first: Edit: If you do it like that, you will have to change some paths in the tutorial (because they are relative to the object_detection folder). |
To be able to access the 'utils' module directly, you need to be running the script inside the \research\object_detection folder. |
use "object_detection.utils" instase of "utils" |
Why same module was named |
I still have the problem of "no module named utils" even after adding both of sys.path |
try to change your python version, if you use 2.7 than change your path to version to 3.7 |
I'm getting an error when trying to run the object_detection_tutorial.ipynb in a jupyter notebook as:
I have followed the installation steps, and have compiled protobuf. I'm using a virtualenv.
The text was updated successfully, but these errors were encountered: