jerryli27 / TwinGAN

Twin-GAN -- Unpaired Cross-Domain Image Translation with Weight-Sharing GANs
Apache License 2.0
719 stars 98 forks source link

AttributeError: 'NoneType' object has no attribute 'shape' #20

Closed cumtwb closed 5 years ago

cumtwb commented 5 years ago

I got the error when I run pggan_runner.py. env: python 2.7 tf-gpu 1.9.0

Traceback (most recent call last): File "pggan_runner.py", line 164, in tf.app.run() File "/usr/lib/python2.7/site-packages/tensorflow/python/platform/app.py", line 125, in run _sys.exit(main(argv)) File "pggan_runner.py", line 154, in main model.main() File "/root/style_transfer/TwinGAN/image_generation.py", line 1055, in main super(GanModel, self).main() File "/root/style_transfer/TwinGAN/model/model_inheritor.py", line 1055, in main 'is_training': FLAGS.is_training}) File "/root/style_transfer/TwinGAN/deployment/model_deploy.py", line 237, in create_clones outputs = model_fn(*args, **kwargs) File "/root/style_transfer/TwinGAN/image_generation.py", line 250, in _clone_fn generator_kwargs = {'is_training': is_training, 'target_shape': targets.shape} AttributeError: 'NoneType' object has no attribute 'shape' Thank you~