carpedm20 / DCGAN-tensorflow

A tensorflow implementation of "Deep Convolutional Generative Adversarial Networks"
http://carpedm20.github.io/faces/
MIT License
7.15k stars 2.63k forks source link

issue in training #71

Closed Exception4U closed 7 years ago

Exception4U commented 7 years ago

File "main.py", line 44, in main dcgan.train(FLAGS) File "/home/tushar/codes/python_codes/DCGAN-tensorflow/model.py", line 131, in train init_op = tf.global_variables_initializer() AttributeError: 'module' object has no attribute 'global_variables_initializer'

MustafaMustafa commented 7 years ago

You are using an older version an older version of TF. I added a try/except block to address backward compatibility #72 . @carpedm20 can merge it when he wakes up.

carpedm20 commented 7 years ago

I think this issue is solved. Thanks @MustafaMustafa