Skip to content

content discriminator training vs other parts training #52

Open
@CaptainPrice12

Description

@CaptainPrice12

Hi, thanks for sharing the impressive work. I have a question about the network updating strategy in the train.py file.
For if (it + 1) % opts.d_iter != 0 and it < len(train_loader) - 2:

if (it + 1) % opts.d_iter != 0 and it < len(train_loader) - 2:

if d_iter is set as 3, in each epoch, the content discriminator will be updated using almost 2/3 of the total batches, and the model.update_D(images_a, images_b) and model.update_EG() will be updated using only about 1/3 of total data, right?
In each epoch, the model.update_D(images_a, images_b) and model.update_EG() two parts will only be feed 1 batch in each 3, so, why don't use the same batches to update these three parts?
For example, use every batch to update these three parts, but the content discriminator part can be trained multiple times (e.g. 2 times if d_iter=3) by every batch.

I am new to GAN, if I have any misunderstanding, please correct me, thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions