jupyter notebook importError question

Asked 2 years ago, Updated 2 years ago, 128 views

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

2022-09-22 16:07

1 Answers

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.


2022-09-22 16:07

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.