tensorflow / tensorflow/models

ImportError: cannot import name 'anchor_generator_pb2' from 'object_detection.protos'

Open
#11,069 0 comments 0 reactions 1 assignee View on GitHub

@laxmareddyp is already working on this.

Since Aug 6, 2023.

models:research type:support
Dominant language
Python
Stars
77.7k
Forks
44.8k
PR merge metrics
No merged PRs in 30d

Description

When i run the verification script i get this error

Traceback (most recent call last): File "D:\TFODCourse\Tensorflow\models\research\object_detection\builders\model_builder_tf2_test.py", line 24, in from object_detection.builders import model_builder File "D:\tfod\Lib\site-packages\object_detection\builders\model_builder.py", line 20, in from object_detection.builders import anchor_generator_builder File "D:\tfod\Lib\site-packages\object_detection\builders\anchor_generator_builder.py", line 21, in from object_detection.protos import anchor_generator_pb2 ImportError: cannot import name 'anchor_generator_pb2' from 'object_detection.protos' (D:\tfod\Lib\site-packages\object_detection\protos\__init__.py)
Kindly help me to fix this error i've used to many issues on github to solve this error but im not able to solve this error
![Screenshot (23)](https://github.com/tensorflow/models/assets/94551372/ef16796c-eeb8-47b4-9b44-5f0fbf4aab35)

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.