|
Download docs/hard/UpscaleModule.md from DD32/MagicNodes: direct link, hf CLI and curl.
- Browser
- Download file 770 Bytes
-
https://huggingface.co/DD32/MagicNodes/resolve/main/docs/hard/UpscaleModule.md
- Command line
-
hf download hf://DD32/MagicNodes/docs/hard/UpscaleModule.md
-
curl -L -o UpscaleModule.md https://huggingface.co/DD32/MagicNodes/resolve/main/docs/hard/UpscaleModule.md
770 Bytes
| # 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_method` in `nearest-exact | bilinear | area | bicubic | lanczos` | |
| - `scale_by` (float) | |
| ## Outputs | |
| - `LATENT` — upscaled latent | |
| - `Upscaled Image` — convenience decoded image | |
| ## Tips | |
| - Use modest `scale_by` first (e.g., 1.2–1.5) and chain passes if needed. | |
| - Keep the same `vae` before and after upscale in a larger pipeline. | |