Skip to content

Loss for autoencoder #5

@qiwen-1123

Description

@qiwen-1123

Hi,

thanks for the great work!

I have a question regarding the loss function for training autoencoder.

In the paper, you mentioned We train our autoencoder using a simple reconstruction objective (e.g., l2 loss), but in the code
if mode == "autoenc": criterion = ( torch.nn.MSELoss() if args.mode == 'latent' else LPIPSWithDiscriminator(disc_start=10000000).to(device) )
you trained with the LPIPSWithDiscriminator, since you are using pixel mode. So the loss is not just a L2?

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