Skip to content

如何在tf2.0下运行inception_v3_train_val.py #20

@cj741

Description

@cj741

修改inception_v3_train_val.py 增加
import tensorflow.compat.v1 as tf
tf.disable_v2_behavior()
试着在tf2.0下运行,提示错误
import slim.nets.inception_v3 as inception_v3
from nets import inception_utils
AttributeError: module 'tensorflow' has no attribute 'contrib'
contrib已经在2.0中移除,这三个库怎么导入?
多谢!

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