Skip to content

TensorFlow 2 version used a TensorFlow 1 version code #94

@bfhaha

Description

@bfhaha

I am reading this tutorial: TensorFlow 2 Object Detection API tutorial. In this script,
https://tensorflow-object-detection-api-tutorial.readthedocs.io/en/2.2.0/training.html#convert-xml-to-record
there is a line
import tensorflow.compat.v1 as tf
Which causes an error AttributeError: module 'tensorflow' has no attribute 'gfile'
Does anyone know how to solve it? Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions