val-iisc / deligan

This project is an implementation of the Generative Adversarial Network proposed in our CVPR 2017 paper - DeLiGAN : Generative Adversarial Networks for Diverse and Limited Data. DeLiGAN is a simple but effective modification of the GAN framework and aims to improve performance on datasets which are diverse yet small in size.
MIT License
110 stars 28 forks source link

fixed batch size #5

Closed SchafferZhang closed 6 years ago

SchafferZhang commented 6 years ago

if I want to apply deli-GAN's spirits to some other application like conditional GAN , so the batch size have to fixed? I think this is not convenient.

swami1995 commented 6 years ago

Hi, thanks for your question. I'm not sure I understand why it's problematic to apply deligan with fixed batch size in conditional GAN. Could you please elaborate upon what you mean and why fixed batch sizes would be inconvenient?

SchafferZhang commented 6 years ago

Thanks for your reply @swami1995 . I will make my question more specific. In the paper, you substitute the random noise z with a mixture of Gaussian distributions, and you set the number of the distribution to N, which is the batch size. So if I want to generate 2N samples at a time, it will not be convenient. What I mean is that in your implementation, the batch size have to be fixed during training phase, not like some other network, which the batch size can be set to None.

swami1995 commented 6 years ago

Hi, I'm sorry, I think I didn't see your messages earlier. Coming to the question. You are right, I agree that is an inconvenience. The problem was that if we don't specify that, we'd have to make the computational graph dynamic and tensorflow didn't support that. But now that we have various frameworks which support dynamic graphs, I think it shouldn't be a huge problem now.