tensorflow / tensorflow/models

AttributeError: 'function' object has no attribute 'GFile'

Open
#7,498 2 comments 0 reactions 3 assignees View on GitHub

@pkulzc is already working on this.

Since Jun 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

Traceback (most recent call last):
File "/home/pi/Desktop/tensorflow1/models/research/object_detection/Object_detection_webcam.py", line 55, in
label_map = label_map_util.load_labelmap(PATH_TO_LABELS)
File "/home/pi/Desktop/tensorflow1/models/research/object_detection/utils/label_map_util.py", line 137, in load_labelmap
with tf.gfile.GFile(path, 'r') as fid:
AttributeError: 'function' object has no attribute 'GFile'

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.