PanJinquan / tensorflow_models_learning

tensorflow GoogleNet inception V1 V2 V3 V4
942 stars 289 forks source link

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

Open cj741 opened 5 years ago

cj741 commented 5 years ago

修改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中移除,这三个库怎么导入? 多谢!

Instantnoodles-madman commented 4 years ago

装一个1.14.0版本吧