pbaylies / stylegan-encoder

StyleGAN Encoder - converts real images to latent space
Other
740 stars 180 forks source link

AttributeError: module 'tensorflow' has no attribute 'Dimension' #55

Closed Michi-123 closed 4 years ago

Michi-123 commented 4 years ago

Running
!python train_resnet.py --help on Google Colab, I got message AttributeError: module 'tensorflow' has no attribute 'Dimension'

I don't know how to fix it.

Weisheng97 commented 4 years ago

Try running the code below before running to make sure that TensorFlow 1.x selected. 1.15.2

%tensorflow_version 1.x import tensorflow as tf print(tf.version)

Michi-123 commented 4 years ago

Thank you so much!