CompVis / taming-transformers

Taming Transformers for High-Resolution Image Synthesis
https://arxiv.org/abs/2012.09841
MIT License
5.7k stars 1.13k forks source link

Reconstruction loss #40

Open LeeDoYup opened 3 years ago

LeeDoYup commented 3 years ago

In the paper, the authors describe that the recon loss is replaced with perceptual loss.

However, in the code, the actual recon loss is L1 (not L2) + perceptual loss.

https://github.com/LeeDoYup/taming-transformers/blob/1bbc027acb6a47e4eb348d611f9af53f1038ffee/taming/modules/losses/vqperceptual.py#L78-L87

rcao-hk commented 2 years ago

Same question