ZZUTK / Face-Aging-CAAE

Age Progression/Regression by Conditional Adversarial Autoencoder
636 stars 233 forks source link

AttributeError: module 'tensorflow' has no attribute 'AUTO_REUSE' #35

Closed ghost closed 6 years ago

ghost commented 6 years ago
    Training Mode

Traceback (most recent call last): File "main.py", line 70, in tf.app.run() File "C:\Users\user\AppData\Local\Programs\Python\Python36\lib\site-packages\tensorflow\python\platform\app.py", line 48, in run _sys.exit(main(_sys.argv[:1] + flags_passthrough)) File "main.py", line 59, in main use_init_model=FLAGS.use_init_model File "C:\Users\user\Downloads\Face-Aging-CAAE-master\FaceAging.py", line 218, in train with tf.variable_scope('opt', reuse=tf.AUTO_REUSE): AttributeError: module 'tensorflow' has no attribute 'AUTO_REUSE'

ghost commented 6 years ago

pip3 install --upgrade tensorflow

dimitri320 commented 5 years ago

this doesn't work in Oct 2019

RushToNeverLand commented 4 years ago

this doesn't work in Dec 2019

jqueguiner commented 4 years ago

to fix : use tf.compat.v1.AUTO_REUSE instead