ComfyUI Node
⭐ Star DyPE Model Patcher
Patches FLUX/QWEN/WAN models with DyPE for ultra-high resolution generation (4K+). Includes preset aspect ratios optimized for high-resolution output.
⭐ Star DyPE Model Patcher
- model
- MODEL
- empty_latent
- width
- height
◄methodyarn►
◄enable_dypetrue►
◄aspect_ratio1:1 (4096x4096)►
◄scale0.5►
Category⭐StarNodes/DyPE
Inputs (5)
| Name | Type | Default | Description |
|---|---|---|---|
| model | MODEL | — | |
| method | COMBO | yarn | Position encoding method. YARN (recommended) combines NTK and linear interpolation. NTK uses Neural Tangent Kernel scaling. Base uses standard encoding. |
| enable_dype | BOOLEAN | true | Enable Dynamic Position Encoding with timestep-aware scaling for better high-res results |
| aspect_ratio | COMBO | 1:1 (4096x4096) | Select aspect ratio preset. All presets are optimized for ~16MP total resolution. |
| scale | FLOAT | 0.50.1–2 | Latent scale factor. 0.5 creates latent at half the chosen resolution (e.g., 2048x2048 for 4096x4096). 1.0 creates full-size latent. |
Outputs (4)
| Name | Type | Description |
|---|---|---|
| MODEL | MODEL | — |
| empty_latent | LATENT | — |
| width | INT | — |
| height | INT | — |