eriklindernoren / PyTorch-GAN

PyTorch implementations of Generative Adversarial Networks.
MIT License
16.17k stars 4.05k forks source link

buffer in the cyclegan #183

Open SITUSITU opened 2 years ago

SITUSITU commented 2 years ago

My personal understanding about what the buffer do is that the first 50 fake sample from the generator are fed into the discriminator as usual, but in the meantime they are stored in a list. When the generator generates the 51st fake sample, the newest fake sample has a 50% chance to replace a element in the list randomly. then the replaced element in the list is fed into the discriminator. There is also a 50% chance that the newest fake sample is fed into the discriminator directly, which mean the list is not change. if my understanding is correct? What is the purpose of this.

ffredd commented 2 years ago

Have you solved this problem?