Skip to content

object_detection package install fails #13558

Open
@postman31

Description

@postman31

Prerequisites

Please answer the following questions for yourself before submitting an issue.

  • [ +] I am using the latest TensorFlow Model Garden release and TensorFlow 2.
  • [ +] I am reporting the issue to the correct repository. (Model Garden official or research directory)
  • [+ ] I checked to make sure that this issue has not already been filed.

1. The entire URL of the file you are using

https://github.com/tensorflow/models/blob/master/research/object_detection/packages/tf2/setup.py

2. Describe the bug

Setup for object_detection package fails because of incompatible dependencies, even in simple colab with errors of:

TypeError: Descriptors cannot be created directly.
If this call came from a _pb2.py file, your generated code is out of date and must be regenerated with protoc >= 3.19.0.

3. Steps to reproduce

cd models/research/
protoc object_detection/protos/*.proto --python_out=.
cp object_detection/packages/tf2/setup.py .
python -m pip install .

python /content/models/research/object_detection/builders/model_builder_tf2_test.py

https://colab.research.google.com/drive/1krnCXwHeRqROVrXn55_wtHm5NWydJnXk#scrollTo=u3-XpvyWiCSB

6. System information

default google colab notebook like following:
https://colab.research.google.com/drive/1krnCXwHeRqROVrXn55_wtHm5NWydJnXk#scrollTo=u3-XpvyWiCSB

Metadata

Metadata

Assignees

No one assigned

    Labels

    models:researchmodels that come under research directorytype:bugBug in the code

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions