TensorForger commited on
Commit
6033fe9
·
verified ·
1 Parent(s): 0e5a92a

Upload folder using huggingface_hub

Browse files
.gitattributes CHANGED
@@ -1,35 +1,6 @@
1
- *.7z filter=lfs diff=lfs merge=lfs -text
2
- *.arrow filter=lfs diff=lfs merge=lfs -text
3
- *.bin filter=lfs diff=lfs merge=lfs -text
4
- *.bz2 filter=lfs diff=lfs merge=lfs -text
5
- *.ckpt filter=lfs diff=lfs merge=lfs -text
6
- *.ftz filter=lfs diff=lfs merge=lfs -text
7
- *.gz filter=lfs diff=lfs merge=lfs -text
8
- *.h5 filter=lfs diff=lfs merge=lfs -text
9
- *.joblib filter=lfs diff=lfs merge=lfs -text
10
- *.lfs.* filter=lfs diff=lfs merge=lfs -text
11
- *.mlmodel filter=lfs diff=lfs merge=lfs -text
12
- *.model filter=lfs diff=lfs merge=lfs -text
13
- *.msgpack filter=lfs diff=lfs merge=lfs -text
14
- *.npy filter=lfs diff=lfs merge=lfs -text
15
- *.npz filter=lfs diff=lfs merge=lfs -text
16
- *.onnx filter=lfs diff=lfs merge=lfs -text
17
- *.ot filter=lfs diff=lfs merge=lfs -text
18
- *.parquet filter=lfs diff=lfs merge=lfs -text
19
- *.pb filter=lfs diff=lfs merge=lfs -text
20
- *.pickle filter=lfs diff=lfs merge=lfs -text
21
- *.pkl filter=lfs diff=lfs merge=lfs -text
22
- *.pt filter=lfs diff=lfs merge=lfs -text
23
- *.pth filter=lfs diff=lfs merge=lfs -text
24
- *.rar filter=lfs diff=lfs merge=lfs -text
25
  *.safetensors filter=lfs diff=lfs merge=lfs -text
26
- saved_model/**/* filter=lfs diff=lfs merge=lfs -text
27
- *.tar.* filter=lfs diff=lfs merge=lfs -text
28
- *.tar filter=lfs diff=lfs merge=lfs -text
29
- *.tflite filter=lfs diff=lfs merge=lfs -text
30
- *.tgz filter=lfs diff=lfs merge=lfs -text
31
- *.wasm filter=lfs diff=lfs merge=lfs -text
32
- *.xz filter=lfs diff=lfs merge=lfs -text
33
- *.zip filter=lfs diff=lfs merge=lfs -text
34
- *.zst filter=lfs diff=lfs merge=lfs -text
35
- *tfevents* filter=lfs diff=lfs merge=lfs -text
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  *.safetensors filter=lfs diff=lfs merge=lfs -text
2
+ *.png filter=lfs diff=lfs merge=lfs -text
3
+ *.jpg filter=lfs diff=lfs merge=lfs -text
4
+ *.gif filter=lfs diff=lfs merge=lfs -text
5
+ *.mp4 filter=lfs diff=lfs merge=lfs -text
6
+ *.webp filter=lfs diff=lfs merge=lfs -text
 
 
 
 
 
LICENSE ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ MIT License
2
+
3
+ Copyright (c) 2026 TensorForger
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
NOTICE ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Steppe
2
+ Copyright (c) 2026 TensorForger. Licensed under the MIT License (see LICENSE).
3
+
4
+ Steppe models operate on the latent space of the Wan 2.1 VAE and were trained on latents produced by it.
5
+
6
+ Wan 2.1 VAE
7
+ 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 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 ADDED
@@ -0,0 +1,175 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ **Steppe** is a family of *generative latent upscalers*: small generative models trained only for upscaling,
33
+ which run directly on VAE latents. The upscaled latent is **decoded straight by the VAE**: no second sampling pass of
34
+ the base model, no hires fix, no prompt.
35
+
36
+ These models upscale latents of the **Wan 2.1 VAE**, the latent space shared by Wan 2.1, Wan 2.2 14B, Qwen-Image and
37
+ Qwen-Image-Edit.
38
+
39
+ - **2x resolution** of images and videos, e.g. 512 → 1024 or 1024 → 2048, and chained 2x → 2x.
40
+ - **2x frame rate** of videos (latent frame interpolation), also combined with 2x resolution.
41
+ - **One step**: ~45 ms for a 1024 px image with the default model (RTX 5090). Most of the time goes to the VAE decode.
42
+ - **Sharpness control** through the high frequency feature conditioning (hff).
43
+
44
+ <!-- TODO (stage 4): hero comparison card, video comparison, gallery -->
45
+
46
+ ## Use in ComfyUI
47
+
48
+ Install [ComfyUI-Steppe](https://github.com/TensorForger/ComfyUI-Steppe): search for "Steppe" in ComfyUI-Manager,
49
+ or run `comfy node install steppe`. The models download automatically on first use.
50
+
51
+ `KSampler → Steppe Upscale Latent → VAE Decode`
52
+
53
+ To install the models manually, put the files into `ComfyUI/models/latent_upscale_models`.
54
+
55
+ ## Files
56
+
57
+ | file | steps | parameters | use |
58
+ |---|---|---|---|
59
+ | [`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 |
60
+ | [`steppe_wan_2_1_200M_base.safetensors`](steppe_wan_2_1_200M_base.safetensors) | 1-200 (20) | 222M | most control: steps, CFG on hff, best for chained 2x → 2x upscales |
61
+ | [`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 |
62
+
63
+ All files are bfloat16 safetensors with the model configuration in the metadata. `config.json` is the catalog of this
64
+ repository (versions, recommended settings).
65
+
66
+ ## Compatibility
67
+
68
+ | model | VAE | status |
69
+ |---|---|---|
70
+ | Wan 2.1 (T2V, I2V, FLF2V, VACE; 1.3B, 14B) | Wan 2.1 VAE | native |
71
+ | Wan 2.2 A14B (T2V, I2V) | Wan 2.1 VAE | native |
72
+ | Qwen-Image, Qwen-Image-Edit | Qwen-Image VAE: the Wan 2.1 encoder (identical weights) with a fine-tuned decoder | same latent space |
73
+ | Wan 2.2 TI2V 5B | Wan 2.2 VAE (48 channels) | **not supported** |
74
+ | FLUX, SD3, SDXL, … | other VAEs | **not supported** |
75
+
76
+ <!-- TODO (stage 3): confirm Qwen-Image / Qwen-Image-Edit visually and add other models tested with Wan 2.1 latents -->
77
+
78
+ ## Settings
79
+
80
+ - **hff** (`0...1`, default 0.9): target amount of fine detail and sharpness. Off (`-1`) lets the model choose.
81
+ The values are absolute: an Immerkaer noise estimate, quantile-normalized on ReLAION photos.
82
+ - **guidance**:
83
+ - 1-step models: a distilled guidance input, trained on 1-3 (default 2), no extra cost.
84
+ - Base model: classifier free guidance between the hff and the null hff. Use 4-8 for a strong effect; the cost is
85
+ two passes per step.
86
+ - **Base model sampler**: 20 Euler steps, sigma shift 4. The initial noise scale is 1.0 for spatial upscaling and
87
+ 0.8 for temporal only.
88
+ - **Temporal 2x**: T latent frames become 1 + 2 (T - 1), i.e. 81 → 161 pixel frames. The first frame is kept.
89
+
90
+ ## Benchmark
91
+
92
+ 1000 photos (Axis-V1), 512 → 1024. Every solution gets only the Wan 2.1 latent (no prompt). Patch FID on native
93
+ 256 px tiles (lower is better); latency at batch 1, VAE decode included, RTX 5090, eager bfloat16.
94
+
95
+ | solution | patch FID | FID | latency | peak VRAM |
96
+ |---|---|---|---|---|
97
+ | Steppe 200M base, 20 steps | **4.31** | 3.01 | 1051 ms | 5.0 GB |
98
+ | Steppe 200M 1-step | 4.36 | 3.07 | 179 ms | 4.9 GB |
99
+ | Steppe 20M 1-step | 5.85 | 3.85 | 141 ms | 4.5 GB |
100
+ | Wan2.1-VAE-upscale2x decoder (spacepxl) | 6.33 | 5.80 | 29 ms | 1.3 GB |
101
+ | SPAN 2x after decode | 11.19 | 4.83 | 35 ms | 1.3 GB |
102
+ | Real-ESRGAN x2 after decode | 13.83 | 8.83 | 57 ms | 1.3 GB |
103
+ | bicubic after decode | 14.13 | 3.33 | 30 ms | 1.3 GB |
104
+ | SesquiLSR (latent, made for hires fix) | 29.23 | 7.65 | 136 ms | 4.5 GB |
105
+
106
+ Steppe stays close to the input: the roundtrip color error (ΔE00 2.36) equals the VAE reconstruction floor.
107
+
108
+ <!-- TODO (stage 4): latency vs quality plot -->
109
+
110
+ ## Python
111
+
112
+ ```bash
113
+ pip install "steppe[standalone] @ git+https://github.com/TensorForger/ComfyUI-Steppe"
114
+ ```
115
+
116
+ ```python
117
+ import torch
118
+ from diffusers import AutoencoderKLWan
119
+ from steppe import UpscaleSettings, load_upscaler
120
+
121
+ vae = AutoencoderKLWan.from_pretrained(
122
+ "Wan-AI/Wan2.1-T2V-1.3B-Diffusers", subfolder="vae", torch_dtype=torch.float32
123
+ ).to("cuda")
124
+ upscaler = load_upscaler("steppe_wan_2_1_200M_1step.safetensors")
125
+ upscaler.model.to("cuda")
126
+
127
+ # pixels: [B, 3, T, H, W] in [-1, 1]; raw (unnormalized) latents in and out
128
+ latents = vae.encode(pixels.to("cuda")).latent_dist.mode()
129
+ upscaled = upscaler.upscale(
130
+ latents, UpscaleSettings(spatial=True, temporal=False, hff=0.9, guidance=2.0)
131
+ )
132
+ pixels_2x = vae.decode(upscaled.to("cuda")).sample
133
+ ```
134
+
135
+ ## How it works
136
+
137
+ A window transformer runs on the full resolution latent grid. It uses DiT style adaLN-zero blocks, shifted 8x8
138
+ window attention and a causal depthwise temporal convolution. A learned source encoder upsamples the input latent.
139
+ The model generates the normalized residual over the aligned low resolution latent with rectified flow, conditioned
140
+ on the noise level and the hff.
141
+
142
+ - **Base model**: 222M parameters, trained from scratch for ~46 h on 6 RTX 5090s. Data: ReLAION images (512 → 1024
143
+ and 256 → 512) and video clips (17 → 33 frames at 512, plus 1024 and combined spatial and temporal pairs).
144
+ hff dropout enables classifier free guidance.
145
+ - **1-step model**: rectified flow distillation of the base model (40k teacher pairs, 2 h on 8 GPUs). It keeps ~99%
146
+ of the base model's quality.
147
+ - **20M model**: the same architecture scaled down and trained from scratch on pairs from the 1-step model.
148
+
149
+ The architecture and recipe come from ~70 agent-driven autoresearch runs on Wan 2.1 latents.
150
+
151
+ <!-- TODO: confirm the exact dataset names and licenses for this section -->
152
+
153
+ ## Limitations
154
+
155
+ - Small text and small background faces are where all upscalers fail. Steppe improves them less than textures and
156
+ edges, and the 20M model the least.
157
+ - The upscaling factor is fixed at 2x. For 4x, chain two upscales.
158
+ - Long videos run in one pass, but the model was trained on clips up to 33 output frames. For very long clips,
159
+ temporal windows (Advanced node) can be more stable.
160
+
161
+ ## License
162
+
163
+ MIT. Steppe works on latents of the Wan 2.1 VAE (Apache-2.0, Wan Team, Alibaba Group), see `NOTICE`. This repository
164
+ does not contain VAE weights.
165
+
166
+ The ancestor of Steppe is [comfyui-flow-upscaler](https://github.com/tensorforger/comfyui-flow-upscaler) (FLUX.2).
167
+
168
+ ```bibtex
169
+ @misc{steppe2026,
170
+ author = {TensorForger},
171
+ title = {Steppe: Generative Latent Upscalers},
172
+ year = {2026},
173
+ url = {https://huggingface.co/TensorForger/Steppe-Wan2.1}
174
+ }
175
+ ```
assets/.gitkeep ADDED
File without changes
config.json ADDED
@@ -0,0 +1,45 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "format": "steppe-catalog",
3
+ "format_version": 1,
4
+ "project": "Steppe",
5
+ "latent_space": "wan_2_1",
6
+ "default_model": "steppe_wan_2_1_200M_1step.safetensors",
7
+ "implementation": "https://github.com/TensorForger/ComfyUI-Steppe",
8
+ "models": {
9
+ "steppe_wan_2_1_200M_1step.safetensors": {
10
+ "version": "1.0",
11
+ "kind": "single_step",
12
+ "latent_space": "wan_2_1",
13
+ "parameters": 222395088,
14
+ "description": "Single step generative 2x latent upscaler for Wan 2.1 VAE latents (images and videos), distilled from the 200M base model.",
15
+ "recommended_settings": {
16
+ "hff": 0.9,
17
+ "guidance": 2.0
18
+ }
19
+ },
20
+ "steppe_wan_2_1_200M_base.safetensors": {
21
+ "version": "1.0",
22
+ "kind": "flow",
23
+ "latent_space": "wan_2_1",
24
+ "parameters": 222000848,
25
+ "description": "Multi step (rectified flow) generative 2x latent upscaler for Wan 2.1 VAE latents (images and videos), classifier free guidance on the high frequency feature.",
26
+ "recommended_settings": {
27
+ "hff": 0.9,
28
+ "guidance": 2.0,
29
+ "steps": 20,
30
+ "shift": 4.0
31
+ }
32
+ },
33
+ "steppe_wan_2_1_20M_1step.safetensors": {
34
+ "version": "1.0",
35
+ "kind": "single_step",
36
+ "latent_space": "wan_2_1",
37
+ "parameters": 19519224,
38
+ "description": "Lite single step generative 2x latent upscaler for Wan 2.1 VAE latents (images and videos).",
39
+ "recommended_settings": {
40
+ "hff": 0.9,
41
+ "guidance": 2.0
42
+ }
43
+ }
44
+ }
45
+ }
steppe_wan_2_1_200M_1step.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ee61db8a6b754d690bdbd0deac31633beb1e0b2c46e14779133ba5f9230c0ce0
3
+ size 444828864
steppe_wan_2_1_200M_base.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:85503d7004174431d40aa57ebeb3bfeb4501cbb5449800905c412fd73159f55e
3
+ size 444039960
steppe_wan_2_1_20M_1step.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5fc67dd2515788637010f42bf5436152295a240cc9840c86bdc746fb1e61a779
3
+ size 39064216