Octavian-ai / BigGAN-TPU-TensorFlow

TPU enabled Tensorflow implementation of "Large Scale GAN Training for High Fidelity Natural Image Synthesis" (BigGAN)
https://octavian.ai
MIT License
34 stars 13 forks source link

tensorflow_core.contrib.gan is gone in the tensorflow 1.15.2 #10

Open ALearningProgrammer opened 3 years ago

ALearningProgrammer commented 3 years ago

When I run the code, it shows the following error:

Traceback (most recent call last): File "main_tpu.py", line 62, in main() File "main_tpu.py", line 58, in main get_estimator(args, gan, True)) File "/content/BigGAN-TPU-TensorFlow/main_loop.py", line 33, in run_main_loop prefetch_inception_model() File "/content/BigGAN-TPU-TensorFlow/inception_score.py", line 17, in prefetch_inception_model calculate_inception_score(images) File "/content/BigGAN-TPU-TensorFlow/inception_score.py", line 45, in calculate_inception_score v_images = tf.contrib.gan.eval.preprocess_image(v_image_batch) File "/tensorflow-1.15.2/python3.6/tensorflow_core/python/util/lazy_loader.py", line 63, in getattr return getattr(module, item) AttributeError: module 'tensorflow_core.contrib' has no attribute 'gan'

davidhughhenrymack commented 3 years ago

Hi, I've not had time to maintain this codebase, sorry :/