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

Error in object detection installation #1

Open
SaeedShakuri opened this issue Nov 5, 2023 · 0 comments
Open

Error in object detection installation #1

SaeedShakuri opened this issue Nov 5, 2023 · 0 comments

Comments

@SaeedShakuri
Copy link

While installing "!python -m pip install models/research" on Colab, it returns this error:
Using cached PyYAML-5.4.1.tar.gz (175 kB)
Installing build dependencies ... done
error: subprocess-exited-with-error

× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> See above for output.

note: This error originates from a subprocess, and is likely not a problem with pip.
Getting requirements to build wheel ... error
error: subprocess-exited-with-error

× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> See above for output.

note: This error originates from a subprocess, and is likely not a problem with pip.
But it doesn't stop the process of execution on the notebook but it returns an error while running:
from object_detection.utils import label_map_util
Error:
ImportError Traceback (most recent call last)
in <cell line: 2>()
1 # import the label map utility module
----> 2 from object_detection.utils import label_map_util
3
4 # import module for reading and updating configuration files.
5 from object_detection.utils import config_util

/usr/local/lib/python3.10/dist-packages/object_detection/utils/label_map_util.py in
19 import tensorflow as tf
20 from google.protobuf import text_format
---> 21 from object_detection.protos import string_int_label_map_pb2
22
23

ImportError: cannot import name 'string_int_label_map_pb2' from 'object_detection.protos' (/usr/local/lib/python3.10/dist-packages/object_detection/protos/init.py)


NOTE: If your import is failing due to a missing package, you can
manually install dependencies using either !pip or !apt.

To view examples of installing some common dependencies, click the
"Open Examples" button below.

But this time stops the process of execution on the Colab

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

1 participant