Skip to content

Add RealPLKSR as an upscale model#32

Merged
TurboGit merged 1 commit into
darktable-org:masterfrom
andriiryzhkov:new_upscale_models
Jun 1, 2026
Merged

Add RealPLKSR as an upscale model#32
TurboGit merged 1 commit into
darktable-org:masterfrom
andriiryzhkov:new_upscale_models

Conversation

@andriiryzhkov

Copy link
Copy Markdown
Collaborator

After more testing of BSRGAN on real photos, its quality wasn't great as a one-size-fits-all upscaler. The root cause is architectural: BSRGAN was trained with the RealESRGAN-style degradation pipeline, so it implicitly denoises and deblurs as part of upscaling. On a clean source – an edited raw – that denoise side has nothing to do and tends to soften texture the user wanted to keep.

This PR adds RealPLKSR (Real-world PLKSR, Dongheon Lee et al., University of Seoul) as an alternative. MSSIM-pretrain stage only, no GAN finetune – stays conservative and faithful, no implicit denoise. Loaded via Spandrel, exported as static ONNX at 512×512 (x2) and 256×256 (x4).

@TurboGit TurboGit left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@TurboGit TurboGit merged commit 873d311 into darktable-org:master Jun 1, 2026
10 checks passed
@andriiryzhkov andriiryzhkov deleted the new_upscale_models branch June 2, 2026 05:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants