MagicUpscaleModule
Lightweight latent‑space upscaler that keeps shapes aligned to the VAE stride to avoid border artifacts.
Overview
- Decodes latent to image, resamples with selected filter, and re‑encodes.
- Aligns target size up to the VAE spatial compression stride to keep shapes consistent.
- Clears GPU/RAM caches to minimize fragmentation before heavy resizes.
Inputs
samples(LATENT)vae(VAE)upscale_methodinnearest-exact | bilinear | area | bicubic | lanczosscale_by(float)
Outputs
LATENT— upscaled latentUpscaled Image— convenience decoded image
Tips
- Use modest
scale_byfirst (e.g., 1.2–1.5) and chain passes if needed. - Keep the same
vaebefore and after upscale in a larger pipeline.