QVAC-18475 feat[api]: add ESRGAN upscale support to SDK diffusion#1930
Merged
maxim-smotrov merged 10 commits intoMay 11, 2026
Merged
Conversation
simon-iribarren
previously approved these changes
May 6, 2026
f70fe42 to
1ad391f
Compare
lauripiisang
reviewed
May 8, 2026
QVAC E2E —
|
QVAC E2E —
|
QVAC E2E —
|
aaa32f7 to
dc8258d
Compare
gianni-cor
approved these changes
May 11, 2026
simon-iribarren
approved these changes
May 11, 2026
Contributor
Author
|
/review |
Tier-based Approval Status |
Contributor
Author
|
/review |
lauripiisang
approved these changes
May 11, 2026
opaninakuffo
approved these changes
May 11, 2026
Contributor
Author
|
/review |
NamelsKing
approved these changes
May 11, 2026
Contributor
Author
|
/verify |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
🎯 What problem does this PR solve?
📝 How does it solve it?
upscalerconfig object (withmodel_srcand ESRGAN tuning fields) to diffusion model config.upscale: true | { repeats?: number }to diffusion requests and forwards it to@qvac/diffusion-cpp.@qvac/diffusion-cppto^0.6.0and adds an ESRGAN upscale example.🧪 How was it tested?
upscalerequest validation, plugin request forwarding, and diffusion op normalization.bun run test:unitinpackages/sdk.🔌 API Changes
loadModel({ modelType: "diffusion", modelConfig })now accepts anupscalerobject to load ESRGAN upscaler weights alongside the diffusion model.upscaler.model_srcis required whenupscaleris set.upscalerobject accepts optional ESRGAN tuning fields:type(currently only"esrgan"),tile_size,direct,offload_params_to_cpu, andthreads.diffusion()now acceptsupscale: truefor one ESRGAN pass, orupscale: { repeats: N }for repeated upscale passes.upscale: falseis treated the same as omitting the option.