tensorflow / tensorflow/models

AttributeError: 'ConvolutionalBoxPredictor' object has no attribute 'inputs'

Open
#9,910 2 comments 0 reactions 3 assignees View on GitHub

@pkulzc is already working on this.

Since May 4, 2021.

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

Description

Prerequisites

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

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

1. The entire URL of the file you are using

colab notebook
python(3.7)
Tensorflow 2.4.0 (and 2.4.1)

2. Describe the bug

can't train model on tpu by using model_tpu_main.py file

error msg:

" File "/usr/local/lib/python3.7/dist-packages/object_detection/meta_architectures/faster_rcnn_meta_arch.py", line 2947, in updates
self._first_stage_box_predictor.inputs))
AttributeError: 'ConvolutionalBoxPredictor' object has no attribute 'inputs'"

3. Steps to reproduce

run the following line of code:
!python model_tpu_main.py --model_dir=model --pipeline_config_path=model/pipeline_tpu.config --job-dir=model

4. Expected behavior

running the training smoothly

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.