Skip to content

Very confused by the discriminator loss #93

Closed
@xesdiny

Description

@xesdiny

When training the VQGAN pipeline in FFHQ dataset.
I checked the disc_loss use the function like vanilla_d_loss

def hinge_d_loss(logits_real, logits_fake):
    loss_real = torch.mean(F.relu(1. - logits_real))
    loss_fake = torch.mean(F.relu(1. + logits_fake))
    d_loss = 0.5 * (loss_real + loss_fake)
    return d_loss

But the metric in tensorboard ,the loss is very strangeness!
image

I am confused whether this discriminator loss is really optimized for generator training.

The discriminator loss is joined to the process after the training step reaches 30K. By the way, add the metric of discriminator loss form training starts to the shown in the picture above.
image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions