πŸŽ‰ 75% of content is free forever β€” Unlock Premium from $10/mo β†’
CW
Search courses…
πŸ’Ό Servicesℹ️ Aboutβœ‰οΈ ContactView Pricing Plansfrom $10

Super-Resolution with Diffusion Models

Generative AISuper-Resolution with Diffusion Models🟒 Free Lesson

Advertisement

Super-Resolution with Diffusion Models

Module: Generative AI | Difficulty: Advanced

SR3

Real-World Degradation

Blind Super-Resolution

Estimate degradation kernel + SR jointly:

Metrics

class SR3(nn.Module):
    def __init__(self, unet, vae):
        super().__init__()
        self.unet = unet
        self.vae = vae
    def forward(self, x_hr, x_lr, t):
        z_hr = self.vae.encode(x_hr)
        z_lr = nn.functional.interpolate(self.vae.encode(x_lr), size=z_hr.shape[2:])
        noise = torch.randn_like(z_hr)
        z_t = scheduler.add_noise(z_hr, noise, t)
        return ((noise - self.unet(z_t, t, z_lr))**2).mean()
MethodPSNRLPIPSFID
SR327.80.084.2
StableSR28.10.073.5
SUPIR28.50.062.9

Need Expert Generative AI Help?

Get personalized tutoring, project support, or professional consulting.

Advertisement