EndlessSora/focal-frequency-loss
A novel loss function that improves image reconstruction and synthesis by adaptively focusing on hard-to-synthesize frequency components.

Velocity · 7d
+0.4
★ / day
Trend
→steady
star history
Focal Frequency Loss is a PyTorch implementation of a loss function published at ICCV 2021 that addresses frequency-domain gaps in image generation. The loss adaptively down-weights easy frequency components while focusing on harder ones, complementing existing spatial losses. It integrates with popular generative models including VAE, pix2pix, SPADE, and StyleGAN2 to improve perceptual quality and quantitative performance.