machrisaa / tensorflow-vgg

VGG19 and VGG16 on Tensorflow
2.21k stars 1.08k forks source link

Tensorflow version problem #75

Open eliashahbazi opened 4 years ago

eliashahbazi commented 4 years ago

I got this error:

AttributeError: module 'tensorflow' has no attribute 'variable_scope'

I downgrade my tensorflow to 1.15 and tensorflow 1.0 but still got the same error. Do you have a .py version of file for newer version ?

Best Regards

mistery3 commented 4 years ago

Maybe you can try to use tensorflow 1.9.0,the problem of 'variable_scope' would disappear

wy9933 commented 3 years ago

In tensorflow 2.2.0, you can change tf.variable_scopr() to tf.compat.v1.variable_scope()

and it seems that all "no attribute" error can be solved using this method