Issue
I'm trying to run the object_detection API in Tensorflow using my webcam as an input.
The error says: "from utils import label_map_util ModuleNotFoundError: No module named 'utils'"
Which relates to the lines:
from utils import label_map_util
from utils import visualization_utils as vis_util
I've tried "pip install util" appears to work but doesn't solve the problem. I have also reinstalled multiple versions of protobuf as other questions online appear to have this as the solution. I don't get any errors when I install protoc so I don't think this is the issue.
I'm using python 3.6 on windows 10 with tensorflow-gpu.
Solution
What folder are you running your python script from?
To be able to access the 'utils' module directly, you need to be running the script inside the <models-master>\research\object_detection
folder.
Answered By - drec4s
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.