Image-to-Image
Wan2.2
steppe
latent-upscaler
upscaler
super-resolution
video-super-resolution
frame-interpolation
comfyui
wan
wan2.1
qwen-image
flow-matching
distillation
Instructions to use TensorForger/Steppe-Wan2.1 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Wan2.2
How to use TensorForger/Steppe-Wan2.1 with Wan2.2:
# No code snippets available yet for this library. # To use this model, check the repository files and the library's documentation. # Want to help? PRs adding snippets are welcome at: # https://github.com/huggingface/huggingface.js
- Notebooks
- Google Colab
- Kaggle
Upload folder using huggingface_hub
Browse files
NOTICE
CHANGED
|
@@ -8,6 +8,6 @@ Copyright (c) 2025 Wan Team, Alibaba Group.
|
|
| 8 |
Licensed under the Apache License, Version 2.0: https://www.apache.org/licenses/LICENSE-2.0
|
| 9 |
Source: https://github.com/Wan-Video/Wan2.1, https://huggingface.co/Wan-AI/Wan2.1-T2V-14B
|
| 10 |
|
| 11 |
-
This
|
| 12 |
Wan 2.1 VAE configuration. It does not contain or redistribute Wan VAE weights or code; the VAE is obtained
|
| 13 |
from its original source by the user. No modifications were made to the Wan VAE.
|
|
|
|
| 8 |
Licensed under the Apache License, Version 2.0: https://www.apache.org/licenses/LICENSE-2.0
|
| 9 |
Source: https://github.com/Wan-Video/Wan2.1, https://huggingface.co/Wan-AI/Wan2.1-T2V-14B
|
| 10 |
|
| 11 |
+
This repository and the Steppe code contain the per channel latent normalization statistics (latents_mean, latents_std) of the
|
| 12 |
Wan 2.1 VAE configuration. It does not contain or redistribute Wan VAE weights or code; the VAE is obtained
|
| 13 |
from its original source by the user. No modifications were made to the Wan VAE.
|
README.md
CHANGED
|
@@ -1,31 +1,58 @@
|
|
| 1 |
-
|
| 2 |
-
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 8 |
>
|
| 9 |
-
> [ on Hugging Face.
|
| 27 |
-
The nodes download them on first use.
|
| 28 |
-
|
| 29 |
## Gallery
|
| 30 |
|
| 31 |
[](https://raw.githubusercontent.com/tensorforger/tensorforger/main/assets/steppe/compare_anime.png)
|
|
@@ -37,139 +64,153 @@ The nodes download them on first use.
|
|
| 37 |
All examples: Krea 2 Turbo, Steppe 200M 1-step, chained 2x → 2x, no prompt and no refinement pass. Bicubic tiles are
|
| 38 |
upscaled by the same factor from the same input. Click an image for the full resolution card.
|
| 39 |
|
| 40 |
-
##
|
| 41 |
|
| 42 |
-
|
| 43 |
-
|
| 44 |
-
- **Manual:**
|
| 45 |
-
```bash
|
| 46 |
-
cd ComfyUI/custom_nodes
|
| 47 |
-
git clone https://github.com/TensorForger/ComfyUI-Steppe
|
| 48 |
-
pip install -r ComfyUI-Steppe/requirements.txt
|
| 49 |
-
```
|
| 50 |
|
| 51 |
-
|
| 52 |
-
yourself from [Hugging Face](https://huggingface.co/TensorForger/Steppe-Wan2.1) into that folder.
|
| 53 |
|
| 54 |
-
|
| 55 |
-
|
| 56 |
-
[](https://raw.githubusercontent.com/tensorforger/tensorforger/main/assets/steppe/models_lineup.png)
|
| 57 |
-
|
| 58 |
-
| file | steps | size | use |
|
| 59 |
-
|---|---|---|---|
|
| 60 |
-
| `steppe_wan_2_1_200M_1step.safetensors` | 1 | 445 MB | **default**: the quality of the base model in one step |
|
| 61 |
-
| `steppe_wan_2_1_200M_base.safetensors` | 1-200 (20) | 444 MB | most control and research: steps, CFG on hff; same quality as 1-step |
|
| 62 |
-
| `steppe_wan_2_1_20M_1step.safetensors` | 1 | 39 MB | lite: very large outputs (2048 → 4096), real time |
|
| 63 |
|
| 64 |
-
|
| 65 |
|
| 66 |
-
|
| 67 |
-
|---|---|
|
| 68 |
-
| **Load Steppe Upscaler** | Loads a model and downloads released models if missing. `dtype`: auto (bfloat16 where supported) or float32. |
|
| 69 |
-
| **Steppe Upscale Latent** | Upscales a `LATENT`: `spatial` 2x resolution, `temporal` 2x frame rate, `hff`, `guidance`, `steps` (base model only), `seed`. |
|
| 70 |
-
| **Steppe Upscale Latent (Advanced)** | Adds `negative_hff`, `shift`, `noise_scale` and temporal windows for long videos. |
|
| 71 |
-
| **Steppe Measure HFF** | The hff value of an image, e.g. to match the sharpness of a reference. |
|
| 72 |
|
| 73 |
-
|
| 74 |
|
| 75 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 76 |
|
| 77 |
-
|
|
|
|
| 78 |
|
| 79 |
-
|
| 80 |
|
| 81 |
-
|
| 82 |
-
-
|
| 83 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 84 |
|
| 85 |
-
|
|
|
|
| 86 |
|
| 87 |
-
##
|
| 88 |
|
| 89 |
[](https://raw.githubusercontent.com/tensorforger/tensorforger/main/assets/steppe/hff_portrait.png)
|
| 90 |
|
| 91 |
-
- **hff** (
|
| 92 |
-
|
| 93 |
-
resolution gives a value that matches it.
|
| 94 |
- **guidance**:
|
| 95 |
-
- 1-step models: distilled guidance, trained on 1-3. The default
|
| 96 |
-
|
| 97 |
-
- Base model: classifier free guidance between
|
| 98 |
-
|
| 99 |
-
- **
|
| 100 |
-
|
| 101 |
-
|
| 102 |
-
|
| 103 |
-
### Tips
|
| 104 |
-
|
| 105 |
-
- **Chained upscaling** 512 → 1024 → 2048 (4x): use two Steppe nodes. The 1-step model is as good as the base model
|
| 106 |
-
here, too. The 20M model is fast enough for the 2048 → 4096 step.
|
| 107 |
-
- **Any aspect ratio** works; inputs from 512x512 pixels up are tested.
|
| 108 |
-
- **Base model**: same quality as the 1-step model for general use; it is for control and research (steps, CFG on
|
| 109 |
-
hff, negative hff, shift, noise scale).
|
| 110 |
-
- **Decoding large outputs**: use `VAE Decode (Tiled)` for 2048 px images and upscaled videos.
|
| 111 |
-
- **Video**: 81 frames at 480x832 → 960x1664 at 2x frame rate takes 3.5 s and 9 GB peak VRAM with the 1-step model
|
| 112 |
-
(RTX 5090), plus the VAE decode.
|
| 113 |
-
- **Not supported**: the Wan 2.2 5B (TI2V) VAE (48 channels), and FLUX, SD3 and SDXL latents. 16 channel FLUX.1 /
|
| 114 |
-
SD3 latents pass the channel check but give wrong results.
|
| 115 |
-
|
| 116 |
-
## How it works
|
| 117 |
-
|
| 118 |
-
[](https://raw.githubusercontent.com/tensorforger/tensorforger/main/assets/steppe/how_it_works.png)
|
| 119 |
-
|
| 120 |
-
Latent upscalers made for hires fix only stretch the latent, so the base model has to denoise it again at the high
|
| 121 |
-
resolution. Steppe is a generative model itself: a window transformer on the full resolution latent grid generates
|
| 122 |
-
the missing detail with rectified flow, distilled to one step. Details on the
|
| 123 |
-
[model card](https://huggingface.co/TensorForger/Steppe-Wan2.1#how-it-works).
|
| 124 |
|
| 125 |
## Benchmark
|
| 126 |
|
|
|
|
|
|
|
|
|
|
| 127 |
[](https://raw.githubusercontent.com/tensorforger/tensorforger/main/assets/steppe/benchmark_plot.png)
|
| 128 |
|
| 129 |
-
|
| 130 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 131 |
|
| 132 |
-
|
| 133 |
-
|---|---|---|
|
| 134 |
-
| Steppe 200M base, 20 steps | **4.31** | 1051 ms |
|
| 135 |
-
| Steppe 200M 1-step | 4.36 | 179 ms |
|
| 136 |
-
| Steppe 20M 1-step | 5.85 | 141 ms |
|
| 137 |
-
| Wan2.1-VAE-upscale2x decoder (spacepxl) | 6.33 | 29 ms |
|
| 138 |
-
| SPAN 2x after decode | 11.19 | 35 ms |
|
| 139 |
-
| Real-ESRGAN x2 after decode | 13.83 | 57 ms |
|
| 140 |
-
| bicubic after decode | 14.13 | 30 ms |
|
| 141 |
-
| latent upscalers made for hires fix (SesquiLSR, NN latent) | 29-51 | ~135 ms |
|
| 142 |
|
| 143 |
[](https://raw.githubusercontent.com/tensorforger/tensorforger/main/assets/steppe/benchmark_gallery.png)
|
| 144 |
|
| 145 |
-
Benchmark images: [Axis-V1](https://huggingface.co/datasets/refine-axis/axis-v1_1k) by refine-axis (CC BY 4.0),
|
| 146 |
-
cropped. Full table with FID, color shift and VRAM:
|
| 147 |
-
[model card](https://huggingface.co/TensorForger/Steppe-Wan2.1#benchmark).
|
| 148 |
|
| 149 |
## Python
|
| 150 |
|
| 151 |
-
The `steppe` package is pure PyTorch and does not need ComfyUI:
|
| 152 |
-
|
| 153 |
```bash
|
| 154 |
pip install "steppe[standalone] @ git+https://github.com/TensorForger/ComfyUI-Steppe"
|
| 155 |
```
|
| 156 |
|
| 157 |
```python
|
|
|
|
|
|
|
| 158 |
from steppe import UpscaleSettings, load_upscaler
|
| 159 |
|
| 160 |
-
|
|
|
|
|
|
|
|
|
|
| 161 |
upscaler.model.to("cuda")
|
| 162 |
-
|
| 163 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 164 |
```
|
| 165 |
|
| 166 |
-
##
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 167 |
|
| 168 |
-
-
|
| 169 |
-
|
| 170 |
-
|
| 171 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 172 |
|
| 173 |
## License
|
| 174 |
|
| 175 |
-
MIT
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: mit
|
| 3 |
+
pipeline_tag: image-to-image
|
| 4 |
+
tags:
|
| 5 |
+
- steppe
|
| 6 |
+
- latent-upscaler
|
| 7 |
+
- upscaler
|
| 8 |
+
- super-resolution
|
| 9 |
+
- video-super-resolution
|
| 10 |
+
- frame-interpolation
|
| 11 |
+
- comfyui
|
| 12 |
+
- wan
|
| 13 |
+
- wan2.1
|
| 14 |
+
- wan2.2
|
| 15 |
+
- qwen-image
|
| 16 |
+
- flow-matching
|
| 17 |
+
- distillation
|
| 18 |
+
base_model:
|
| 19 |
+
- Wan-AI/Wan2.1-T2V-14B
|
| 20 |
+
- Wan-AI/Wan2.1-T2V-1.3B
|
| 21 |
+
- Wan-AI/Wan2.1-I2V-14B-720P
|
| 22 |
+
- Wan-AI/Wan2.1-I2V-14B-480P
|
| 23 |
+
- Wan-AI/Wan2.2-T2V-A14B
|
| 24 |
+
- Wan-AI/Wan2.2-I2V-A14B
|
| 25 |
+
- Qwen/Qwen-Image
|
| 26 |
+
- Qwen/Qwen-Image-Edit
|
| 27 |
+
base_model_relation: adapter
|
| 28 |
+
---
|
| 29 |
+
|
| 30 |
+
# Steppe for Wan 2.1 VAE latents
|
| 31 |
+
|
| 32 |
+
[](https://raw.githubusercontent.com/tensorforger/tensorforger/main/assets/steppe/hero_cat.png)
|
| 33 |
+
|
| 34 |
+
> ### 🧩 ComfyUI nodes: [ComfyUI-Steppe](https://github.com/TensorForger/ComfyUI-Steppe)
|
| 35 |
+
> Available in **ComfyUI-Manager**: search for "Steppe" and install (or `comfy node install steppe`).
|
| 36 |
+
> The nodes download these models on first use.
|
| 37 |
>
|
| 38 |
+
> [](https://github.com/TensorForger/ComfyUI-Steppe)
|
| 39 |
|
| 40 |
+
**Steppe** is a family of *generative latent upscalers*: small generative models trained only for upscaling,
|
| 41 |
+
which run directly on VAE latents. The upscaled latent is **decoded straight by the VAE**: no second sampling pass of
|
| 42 |
+
the base model, no hires fix, no prompt.
|
| 43 |
+
|
| 44 |
+
These models upscale latents of the **Wan 2.1 VAE**, the latent space shared by Wan 2.1, Wan 2.2 14B, Qwen-Image,
|
| 45 |
+
Qwen-Image-Edit and Krea 2.
|
| 46 |
|
| 47 |
- **2x resolution** of images and videos, e.g. 512 → 1024 or 1024 → 2048, and chained 2x → 2x.
|
| 48 |
- **2x frame rate** of videos (latent frame interpolation), also combined with 2x resolution.
|
| 49 |
+
- **One step**: ~45 ms for a 1024 px image with the default model (RTX 5090). Most of the time goes to the VAE decode.
|
| 50 |
+
- **Sharpness control** through the high frequency feature conditioning (hff).
|
|
|
|
|
|
|
| 51 |
|
| 52 |
+
<video src="https://huggingface.co/TensorForger/Steppe-Wan2.1/resolve/main/assets/video_compare.mp4" controls autoplay loop muted></video>
|
| 53 |
|
| 54 |
*Wan 2.1 1.3B, 640x512 at 16 fps → Steppe 1280x1024 at 32 fps (2x resolution and 2x frame rate in one pass).*
|
| 55 |
|
|
|
|
|
|
|
|
|
|
| 56 |
## Gallery
|
| 57 |
|
| 58 |
[](https://raw.githubusercontent.com/tensorforger/tensorforger/main/assets/steppe/compare_anime.png)
|
|
|
|
| 64 |
All examples: Krea 2 Turbo, Steppe 200M 1-step, chained 2x → 2x, no prompt and no refinement pass. Bicubic tiles are
|
| 65 |
upscaled by the same factor from the same input. Click an image for the full resolution card.
|
| 66 |
|
| 67 |
+
## Use in ComfyUI
|
| 68 |
|
| 69 |
+
Install [ComfyUI-Steppe](https://github.com/TensorForger/ComfyUI-Steppe): search for "Steppe" in ComfyUI-Manager,
|
| 70 |
+
or run `comfy node install steppe`. The models download automatically on first use.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 71 |
|
| 72 |
+
`KSampler → Steppe Upscale Latent → VAE Decode`
|
|
|
|
| 73 |
|
| 74 |
+
Example workflows (Krea 2 image 4x, Wan 2.1 video 2x resolution + 2x frame rate) are in
|
| 75 |
+
[`example_workflows/`](https://github.com/TensorForger/ComfyUI-Steppe/tree/main/example_workflows).
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 76 |
|
| 77 |
+
To install the models manually, put the files into `ComfyUI/models/latent_upscale_models`.
|
| 78 |
|
| 79 |
+
## Files
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 80 |
|
| 81 |
+
[](https://raw.githubusercontent.com/tensorforger/tensorforger/main/assets/steppe/models_lineup.png)
|
| 82 |
|
| 83 |
+
| file | steps | parameters | use |
|
| 84 |
+
|---|---|---|---|
|
| 85 |
+
| [`steppe_wan_2_1_200M_1step.safetensors`](steppe_wan_2_1_200M_1step.safetensors) | 1 | 222M | **default**, 90% of use cases: the quality of the base model in one step |
|
| 86 |
+
| [`steppe_wan_2_1_200M_base.safetensors`](steppe_wan_2_1_200M_base.safetensors) | 1-200 (20) | 222M | most control and research: steps, CFG on hff; same quality as the 1-step model in general use |
|
| 87 |
+
| [`steppe_wan_2_1_20M_1step.safetensors`](steppe_wan_2_1_20M_1step.safetensors) | 1 | 19.5M | lite: very large outputs (2048 → 4096), real time and streaming use |
|
| 88 |
|
| 89 |
+
All files are bfloat16 safetensors with the model configuration in the metadata. `config.json` is the catalog of this
|
| 90 |
+
repository (versions, recommended settings).
|
| 91 |
|
| 92 |
+
## Compatibility
|
| 93 |
|
| 94 |
+
| model | VAE | status |
|
| 95 |
+
|---|---|---|
|
| 96 |
+
| Wan 2.1 (T2V, I2V, FLF2V, VACE; 1.3B, 14B) | Wan 2.1 VAE | native |
|
| 97 |
+
| Wan 2.2 A14B (T2V, I2V) | Wan 2.1 VAE | native |
|
| 98 |
+
| Qwen-Image, Qwen-Image-Edit | Qwen-Image VAE: the Wan 2.1 encoder (identical weights) with a fine-tuned decoder | native, tested with `qwen_image_vae` |
|
| 99 |
+
| Krea 2 | Wan 2.1 VAE | native, tested |
|
| 100 |
+
| Wan 2.2 TI2V 5B | Wan 2.2 VAE (48 channels) | **not supported** |
|
| 101 |
+
| FLUX, SD3, SDXL, … | other VAEs | **not supported** |
|
| 102 |
|
| 103 |
+
Tested in ComfyUI with both `wan_2.1_vae` and `qwen_image_vae`, chained 2x → 2x, any aspect ratio, inputs from
|
| 104 |
+
512x512 pixels up.
|
| 105 |
|
| 106 |
+
## Settings
|
| 107 |
|
| 108 |
[](https://raw.githubusercontent.com/tensorforger/tensorforger/main/assets/steppe/hff_portrait.png)
|
| 109 |
|
| 110 |
+
- **hff** (`0...1`, default 0.9): target amount of fine detail and sharpness. Off (`-1`) lets the model choose.
|
| 111 |
+
The values are absolute: an Immerkaer noise estimate, quantile-normalized on ReLAION photos.
|
|
|
|
| 112 |
- **guidance**:
|
| 113 |
+
- 1-step models: a distilled guidance input, trained on 1-3, no extra cost. The default 1 (off) is safe and
|
| 114 |
+
stable; 2 also works well.
|
| 115 |
+
- Base model: classifier free guidance between the hff and the null hff. Use 4-8 for a strong effect; the cost is
|
| 116 |
+
two passes per step.
|
| 117 |
+
- **Base model sampler**: 20 Euler steps, sigma shift 4. The initial noise scale is 1.0 for spatial upscaling and
|
| 118 |
+
0.8 for temporal only.
|
| 119 |
+
- **Temporal 2x**: T latent frames become 1 + 2 (T - 1), i.e. 81 → 161 pixel frames. The first frame is kept.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 120 |
|
| 121 |
## Benchmark
|
| 122 |
|
| 123 |
+
1000 photos (Axis-V1), 512 → 1024. Every solution gets only the Wan 2.1 latent (no prompt). Patch FID on native
|
| 124 |
+
256 px tiles (lower is better); latency at batch 1, VAE decode included, RTX 5090, eager bfloat16.
|
| 125 |
+
|
| 126 |
[](https://raw.githubusercontent.com/tensorforger/tensorforger/main/assets/steppe/benchmark_plot.png)
|
| 127 |
|
| 128 |
+
| solution | patch FID | FID | latency | peak VRAM |
|
| 129 |
+
|---|---|---|---|---|
|
| 130 |
+
| Steppe 200M base, 20 steps | **4.31** | 3.01 | 1051 ms | 5.0 GB |
|
| 131 |
+
| Steppe 200M 1-step | 4.36 | 3.07 | 179 ms | 4.9 GB |
|
| 132 |
+
| Steppe 20M 1-step | 5.85 | 3.85 | 141 ms | 4.5 GB |
|
| 133 |
+
| Wan2.1-VAE-upscale2x decoder (spacepxl) | 6.33 | 5.80 | 29 ms | 1.3 GB |
|
| 134 |
+
| SPAN 2x after decode | 11.19 | 4.83 | 35 ms | 1.3 GB |
|
| 135 |
+
| Real-ESRGAN x2 after decode | 13.83 | 8.83 | 57 ms | 1.3 GB |
|
| 136 |
+
| bicubic after decode | 14.13 | 3.33 | 30 ms | 1.3 GB |
|
| 137 |
+
| SesquiLSR (latent, made for hires fix) | 29.23 | 7.65 | 136 ms | 4.5 GB |
|
| 138 |
|
| 139 |
+
Steppe stays close to the input: the roundtrip color error (ΔE00 2.36) equals the VAE reconstruction floor.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 140 |
|
| 141 |
[](https://raw.githubusercontent.com/tensorforger/tensorforger/main/assets/steppe/benchmark_gallery.png)
|
| 142 |
|
| 143 |
+
Benchmark images: [Axis-V1](https://huggingface.co/datasets/refine-axis/axis-v1_1k) by refine-axis (CC BY 4.0), cropped.
|
|
|
|
|
|
|
| 144 |
|
| 145 |
## Python
|
| 146 |
|
|
|
|
|
|
|
| 147 |
```bash
|
| 148 |
pip install "steppe[standalone] @ git+https://github.com/TensorForger/ComfyUI-Steppe"
|
| 149 |
```
|
| 150 |
|
| 151 |
```python
|
| 152 |
+
import torch
|
| 153 |
+
from diffusers import AutoencoderKLWan
|
| 154 |
from steppe import UpscaleSettings, load_upscaler
|
| 155 |
|
| 156 |
+
vae = AutoencoderKLWan.from_pretrained(
|
| 157 |
+
"Wan-AI/Wan2.1-T2V-1.3B-Diffusers", subfolder="vae", torch_dtype=torch.float32
|
| 158 |
+
).to("cuda")
|
| 159 |
+
upscaler = load_upscaler("steppe_wan_2_1_200M_1step.safetensors")
|
| 160 |
upscaler.model.to("cuda")
|
| 161 |
+
|
| 162 |
+
# pixels: [B, 3, T, H, W] in [-1, 1]; raw (unnormalized) latents in and out
|
| 163 |
+
latents = vae.encode(pixels.to("cuda")).latent_dist.mode()
|
| 164 |
+
upscaled = upscaler.upscale(
|
| 165 |
+
latents, UpscaleSettings(spatial=True, temporal=False, hff=0.9, guidance=1.0)
|
| 166 |
+
)
|
| 167 |
+
pixels_2x = vae.decode(upscaled.to("cuda")).sample
|
| 168 |
```
|
| 169 |
|
| 170 |
+
## How it works
|
| 171 |
+
|
| 172 |
+
[](https://raw.githubusercontent.com/tensorforger/tensorforger/main/assets/steppe/how_it_works.png)
|
| 173 |
+
|
| 174 |
+
A window transformer runs on the full resolution latent grid. It uses DiT style adaLN-zero blocks, shifted 8x8
|
| 175 |
+
window attention and a causal depthwise temporal convolution. A learned source encoder upsamples the input latent.
|
| 176 |
+
The model generates the normalized residual over the aligned low resolution latent with rectified flow, conditioned
|
| 177 |
+
on the noise level and the hff.
|
| 178 |
|
| 179 |
+
- **Base model**: 222M parameters, trained from scratch for ~46 h on 6 RTX 5090s. Data: images from
|
| 180 |
+
[ReLAION-high-resolution](https://huggingface.co/datasets/laion/relaion-high-resolution) (512 → 1024 and 256 → 512)
|
| 181 |
+
and a set of ~50k video clips at 1024x1024 (17 → 33 frames at 512, plus 1024 and combined spatial and temporal
|
| 182 |
+
pairs). Training pairs are made by downscaling and encoding with the Wan 2.1 VAE; no captions are used.
|
| 183 |
+
hff dropout enables classifier free guidance.
|
| 184 |
+
- **1-step model**: rectified flow distillation of the base model (40k teacher pairs, 2 h on 8 GPUs). It keeps ~99%
|
| 185 |
+
of the base model's quality.
|
| 186 |
+
- **20M model**: the same architecture scaled down and trained from scratch on pairs from the 1-step model.
|
| 187 |
+
|
| 188 |
+
The architecture and recipe come from agent-driven autoresearch: ~80 runs on FLUX.2 latents, then ~70 on Wan 2.1
|
| 189 |
+
latents (rounds of parallel 30 min and 2 h training runs, judged by patch FID).
|
| 190 |
+
|
| 191 |
+
[](https://raw.githubusercontent.com/tensorforger/tensorforger/main/assets/steppe/autoresearch.png)
|
| 192 |
+
|
| 193 |
+
## Limitations
|
| 194 |
+
|
| 195 |
+
- Small text and small background faces are where all upscalers fail. Steppe improves them less than textures and
|
| 196 |
+
edges, and the 20M model the least.
|
| 197 |
+
- The upscaling factor is fixed at 2x. For 4x, chain two upscales (the 1-step model is as good as the base model
|
| 198 |
+
there).
|
| 199 |
+
- Long videos run in one pass, but the model was trained on clips up to 33 output frames. For very long clips,
|
| 200 |
+
temporal windows (Advanced node) can be more stable.
|
| 201 |
|
| 202 |
## License
|
| 203 |
|
| 204 |
+
MIT. Steppe works on latents of the Wan 2.1 VAE (Apache-2.0, Wan Team, Alibaba Group), see `NOTICE`. This repository
|
| 205 |
+
does not contain VAE weights.
|
| 206 |
+
|
| 207 |
+
The ancestor of Steppe is [comfyui-flow-upscaler](https://github.com/tensorforger/comfyui-flow-upscaler) (FLUX.2).
|
| 208 |
+
|
| 209 |
+
```bibtex
|
| 210 |
+
@misc{steppe2026,
|
| 211 |
+
author = {TensorForger},
|
| 212 |
+
title = {Steppe: Generative Latent Upscalers},
|
| 213 |
+
year = {2026},
|
| 214 |
+
url = {https://huggingface.co/TensorForger/Steppe-Wan2.1}
|
| 215 |
+
}
|
| 216 |
+
```
|