google / compare_gan

Compare GAN code.
Apache License 2.0
1.82k stars 319 forks source link

error in VAE.py #15

Closed eyaler closed 5 years ago

eyaler commented 5 years ago

Traceback (most recent call last): File "compare_gan_run_one_task", line 71, in tf.app.run() File "C:\anaconda3\lib\site-packages\tensorflow\python\platform\app.py", line 125, in run _sys.exit(main(argv)) File "compare_gan_run_one_task", line 57, in main gan_lib.run_with_options(options, task_workdir) File "c:\users\e\python\compare_gan\compare_gan\src\gan_lib.py", line 255, in run_with_options gan.train(sess, progress_reporter) File "c:\users\e\python\compare_gan\compare_gan\src\gans\abstract_gan.py", line 441, in train d_loss, g_loss = self.run_single_train_step(features, step, g_loss, sess) TypeError: run_single_train_step() missing 1 required positional argument: 'sess'

eyaler commented 5 years ago

fixed by changing:

 def run_single_train_step(self, batch_images, batch_z, counter, g_loss, sess):

to

  def run_single_train_step(self, features, counter, g_loss, sess):
    batch_images = features['images']
    batch_z = features['z_for_gen_step']
Marvin182 commented 5 years ago

We just released an update of the library and VAEs are no longer part of it. You can continue to use the v2 branch and if you send a pull request to fix this I will merge it.