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

When create dataset #2

Open
xav12358 opened this issue Nov 15, 2017 · 3 comments
Open

When create dataset #2

xav12358 opened this issue Nov 15, 2017 · 3 comments

Comments

@xav12358
Copy link

Hello,

When I try to execute that command
python3 create_inputs_from_dataset.py

I get that error:
python3 create_inputs_from_dataset.py Traceback (most recent call last): File "create_inputs_from_dataset.py", line 40, in <module> from utils import label_map_util File "./models/object_detection/utils/label_map_util.py", line 22, in <module> from object_detection.protos import string_int_label_map_pb2 ImportError: cannot import name 'string_int_label_map_pb2'

Do I install wrong something?

@takashi-uesaka
Copy link

I got same error, but I found solution.
comment out 2 lines.

#LABEL_MAP_PATH = 'hands_label_map.pbtxt'
#label_map_dict = label_map_util.get_label_map_dict(LABEL_MAP_PATH)

Variable of label_map_dict is not used.

@xav12358
Copy link
Author

I also had to remove that line:
#classes.append(label_map_dict[label])

How do I simply run the example?

@zhengxw9
Copy link

find the answer here: tensorflow/models#1969
maybe need protoc to compile the model first

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

3 participants