tensorflow / tensorflow/models
AttributeError: 'function' object has no attribute 'GFile'
Open
@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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.