I can't import to jupyter notebook. What should I do?
In the C:\Users\insor\Desktop\py35\object_detection\utils folder label_map_util.py module
In the C:\Users\insor\Desktop\py35\object_detection folder You are about to import from object_detection_tutorial.ipynb.
If you run the code below in object_detection_tutoria,
from utils import label_map_util
ImportError Traceback (most recent call last) in () ----> 1 from utils import label_map_util
C:\Users\insor\Desktop\py35\object_detection\utils\label_map_util.py in () 20 import tensorflow as tf 21 from google.protobuf import text_format ---> 22 from object_detection.protos import string_int_label_map_pb2 23 24
ImportError: cannot import name 'string_int_label_map_pb2'
It says so
Additionally... They want me to compile this and export it, what should I do? There is an error when you enter it as it is in the cmd window or change the folder path.
protoc object_detection/protos/*.proto --python_out=.
export PYTHONPATH=$PYTHONPATH:pwd
:pwd
/slim
the original https://github.com/tensorflow/models/blob/master/object_detection/g3doc/installation.md
jupyter import-에러 protoc export
ImportErrorTraceback (most recent call last) in () ----> 1 from utils import label_map_util
and I found that https://github.com/tensorflow/models/issues/1591 is effective.
1235 When building Fast API+Uvicorn environment with PyInstaller, console=False results in an error
856 Uncaught (inpromise) Error on Electron: An object could not be cloned
776 M2 Mac fails to install rbenv install 3.1.3 due to errors
771 GDB gets version error when attempting to debug with the Presense SDK (IDE)
© 2025 OneMinuteCode. All rights reserved.