Pytorch-cyclegan-and-pix2pix: [CycleGAN] Training one generator and one discriminator only

Created on 9 Feb 2019  路  5Comments  路  Source: junyanz/pytorch-CycleGAN-and-pix2pix

Hello, is it possible to train two neural networks only (1 generator and 1 discriminator) instead of four Networks?
I'd like to decrease the GPU load and train on many batches. I'm concerned about training CycleGAN Image translation model to one domain only, I don't care about the other domain.
Where can I apply this modification in the code?
Thanks in advance!

Most helpful comment

To use CycleGAN, you have to train 4 networks simultaneously. Removing one or two networks will hurt the performance of the training. If you have paired input-output data, you can consider using pix2pix which only needs two networks.

All 5 comments

To use CycleGAN, you have to train 4 networks simultaneously. Removing one or two networks will hurt the performance of the training. If you have paired input-output data, you can consider using pix2pix which only needs two networks.

Thanks. So if we have pair data, which one is better: CycleGan or pix2pix?

CycleGANs are for unpaired data while pix2pix are used for paired data

Yes. If they are applying to paired data, is cycleGAN better than pix2pix? I think cycleGAN also can apply for paired data, as the paper mentioned

I will recommend that you use pix2pix or pix2pixHD for paired cases. In the paper, we used some pix2pix datasets, but we didn't use the paired information.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

khryang picture khryang  路  3Comments

HectorAnadon picture HectorAnadon  路  4Comments

bill0812 picture bill0812  路  3Comments

zerxon picture zerxon  路  4Comments

ShaniGam picture ShaniGam  路  4Comments