tensorflow / tensorflow/models

model_main.py contains tf.contrib

Open
#8,084 3 comments 0 reactions 3 assignees View on GitHub

@pkulzc is already working on this.

Since May 22, 2020.

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

Description

Hi all,

I am trying out the model_main.py in object detection. When I try with the script. It shows

Traceback (most recent call last):
File "model_main.py", line 26, in
from object_detection import model_lib
File "/home/herru/anaconda3/lib/python3.7/site-packages/object_detection-0.1-py3.7.egg/object_detection/model_lib.py", line 27, in
from object_detection import eval_util
File "/home/herru/anaconda3/lib/python3.7/site-packages/object_detection-0.1-py3.7.egg/object_detection/eval_util.py", line 40, in
slim = tf.contrib.slim
AttributeError: module 'tensorflow' has no attribute 'contrib'

It seems like tensorflow 2.1 has removed contrib. yet in eval_util line 40 and 327 still contains contrib. I suspect it might be a bug? Thanks

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.