Skip to content

fix: preserve alpha when upscaling RGBA images with ESRGAN - #2029

Merged
leejet merged 1 commit into
masterfrom
fix/esrgan-rgba-upscaling
Sep 22, 2026
Merged

leejet merged 1 commit into
masterfrom
fix/esrgan-rgba-upscaling

Conversation

@leejet

@leejet leejet commented Sep 22, 2026

Copy link
Copy Markdown
Owner

Summary

Fix the ESRGAN channel mismatch that aborts Qwen Image 2.1 hires generation. Process RGB through ESRGAN, resize alpha with bilinear interpolation, and recombine the channels.

Related Issue / Discussion

Fixes #2027.

Additional Information

N/A

Checklist

@leejet
leejet merged commit c92d73c into master Sep 22, 2026
9 checks passed
@leejet
leejet deleted the fix/esrgan-rgba-upscaling branch September 22, 2026 18:23
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.

hires with a model-backed upscaler aborts on Qwen-Image-2.1 (GGML_ASSERT ne[2] in ggml_im2col)

1 participant