andrewgordonwilson / bayesgan

Tensorflow code for the Bayesian GAN (https://arxiv.org/abs/1705.09558) (NIPS 2017)
Other
1.02k stars 176 forks source link

d_losses is [None] while running ./run_bgan.py --data_path datasets --dataset mnist --num_mcmc 2 --out_dir ./results/ --train_iter 75000 --save_samples --n_save 100 #17

Open khorshidisamira opened 4 years ago

khorshidisamira commented 4 years ago

Hello, I want to run the unsupervised BGAN with MNIST dataset using this command: ./run_bgan.py --data_path datasets --dataset mnist --num_mcmc 2 --out_dir ./results/ --train_iter 75000 --save_samples --n_save 100 But I got an error:


Starting session
Starting training loop
Iter 100
[None]
Gen losses = 3.56, 5.86
saving results and samples
Traceback (most recent call last):
  File "./run_bgan.py", line 296, in <module>
    b_dcgan(dataset, args)
  File "./run_bgan.py", line 103, in b_dcgan
    results = {"disc_losses": map(float, d_losses),
TypeError: float() argument must be a string or a number

I printed d_losses and got [None]. Any help? Thank you