TensorForger commited on
Commit
ce301e2
Β·
verified Β·
1 Parent(s): 6033fe9

Upload folder using huggingface_hub

Browse files
Files changed (2) hide show
  1. README.md +15 -8
  2. config.json +3 -3
README.md CHANGED
@@ -33,8 +33,8 @@ base_model_relation: adapter
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.
@@ -50,6 +50,9 @@ or run `comfy node install steppe`. The models download automatically on first u
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
@@ -57,7 +60,7 @@ To install the models manually, put the files into `ComfyUI/models/latent_upscal
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
@@ -69,18 +72,21 @@ repository (versions, recommended settings).
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
@@ -127,7 +133,7 @@ upscaler.model.to("cuda")
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
  ```
@@ -154,7 +160,8 @@ The architecture and recipe come from ~70 agent-driven autoresearch runs on Wan
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
 
 
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,
37
+ Qwen-Image-Edit and Krea 2.
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.
 
50
 
51
  `KSampler β†’ Steppe Upscale Latent β†’ VAE Decode`
52
 
53
+ Example workflows (Krea 2 image 4x, Wan 2.1 video 2x resolution + 2x frame rate) are in
54
+ [`example_workflows/`](https://github.com/TensorForger/ComfyUI-Steppe/tree/main/example_workflows).
55
+
56
  To install the models manually, put the files into `ComfyUI/models/latent_upscale_models`.
57
 
58
  ## Files
 
60
  | file | steps | parameters | use |
61
  |---|---|---|---|
62
  | [`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 |
63
+ | [`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 |
64
  | [`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 |
65
 
66
  All files are bfloat16 safetensors with the model configuration in the metadata. `config.json` is the catalog of this
 
72
  |---|---|---|
73
  | Wan 2.1 (T2V, I2V, FLF2V, VACE; 1.3B, 14B) | Wan 2.1 VAE | native |
74
  | Wan 2.2 A14B (T2V, I2V) | Wan 2.1 VAE | native |
75
+ | 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` |
76
+ | Krea 2 | Wan 2.1 VAE | native, tested |
77
  | Wan 2.2 TI2V 5B | Wan 2.2 VAE (48 channels) | **not supported** |
78
  | FLUX, SD3, SDXL, … | other VAEs | **not supported** |
79
 
80
+ Tested in ComfyUI with both `wan_2.1_vae` and `qwen_image_vae`, chained 2x β†’ 2x, any aspect ratio, inputs from
81
+ 512x512 pixels up.
82
 
83
  ## Settings
84
 
85
  - **hff** (`0...1`, default 0.9): target amount of fine detail and sharpness. Off (`-1`) lets the model choose.
86
  The values are absolute: an Immerkaer noise estimate, quantile-normalized on ReLAION photos.
87
  - **guidance**:
88
+ - 1-step models: a distilled guidance input, trained on 1-3, no extra cost. The default 1 (off) is safe and
89
+ stable; 2 also works well.
90
  - Base model: classifier free guidance between the hff and the null hff. Use 4-8 for a strong effect; the cost is
91
  two passes per step.
92
  - **Base model sampler**: 20 Euler steps, sigma shift 4. The initial noise scale is 1.0 for spatial upscaling and
 
133
  # pixels: [B, 3, T, H, W] in [-1, 1]; raw (unnormalized) latents in and out
134
  latents = vae.encode(pixels.to("cuda")).latent_dist.mode()
135
  upscaled = upscaler.upscale(
136
+ latents, UpscaleSettings(spatial=True, temporal=False, hff=0.9, guidance=1.0)
137
  )
138
  pixels_2x = vae.decode(upscaled.to("cuda")).sample
139
  ```
 
160
 
161
  - Small text and small background faces are where all upscalers fail. Steppe improves them less than textures and
162
  edges, and the 20M model the least.
163
+ - The upscaling factor is fixed at 2x. For 4x, chain two upscales (the 1-step model is as good as the base model
164
+ there).
165
  - Long videos run in one pass, but the model was trained on clips up to 33 output frames. For very long clips,
166
  temporal windows (Advanced node) can be more stable.
167
 
config.json CHANGED
@@ -14,7 +14,7 @@
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": {
@@ -25,7 +25,7 @@
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
  }
@@ -38,7 +38,7 @@
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
  }
 
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": 1.0
18
  }
19
  },
20
  "steppe_wan_2_1_200M_base.safetensors": {
 
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": 1.0,
29
  "steps": 20,
30
  "shift": 4.0
31
  }
 
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": 1.0
42
  }
43
  }
44
  }