igul222 / improved_wgan_training

Code for reproducing experiments in "Improved Training of Wasserstein GANs"
MIT License
2.35k stars 670 forks source link

problems with running the gan_toy.py #21

Open wanyding opened 7 years ago

wanyding commented 7 years ago

Hi, I am running the gan_toy.py on python3, and I got some problems like below, I don't know if this happens only because I am running the code on a different version of python or lack of gpu. Please help me, thanks a lot! image

image

anishpdoshi commented 7 years ago

Do you still get errors when running with python2?

Also as a previous issue mentioned - You'll get some data errors when running on a CPU instead of a GPU. I think you can get around this by changing some of the data formats. See https://github.com/igul222/improved_wgan_training/issues/11 if it applies.

magnificGH commented 6 years ago

@Britjeans Hi,I have the same problem:TypeError: unsupported operand type(s) for /: 'dict_values' and 'int',Did you solve this problem?

wanyding commented 6 years ago

@magnificGH Sorry, I didn't...

magnificGH commented 6 years ago

@Britjeans Hi,I have solved this problem by modified the plot.py code: prints.append("{}\t{}".format(name, np.mean(list(vals.values())))) and some other code in save_images.py. These errors are due to the differences between python2 and python3. Now, I can normally run gan_mnist,py in python3