keras-team/keras-io

Generator architecture flipped in the DCGAN?

Closed this issue · 2 comments

Hi,

This is less an issue than a technical question.

I notice that the Generator in the DCGAN tutorial example has the depth logic of its architecture reversed compared to the paper (with number of channels being 128, 256, 512), rather than being deep first (512, 256, 128), and was wondering what was the motivation behind it?

(I find "deep-first" examples in the TensorFlow tutorial, or the PyTorch one.)

I can imagine this follows one of the many tricks around GANs, I just haven't seen this before, any pointers would be greatly appreciated!
Thanks!

There is no profound motivation behind it -- it's just a hyperparameter. You can do the reverse, or you can do constant depth as well. Just go with what works best for your dataset (which might be tricky to evaluate automatically in the case of a GAN -- you may want to look at the generated images and make your own decision).

Thanks for this!