> ## Documentation Index
> Fetch the complete documentation index at: https://dripart-docs-custom-nodes-sdk-v2-frontend.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# WanContextWindowsManual - ComfyUI Built-in Node Documentation

> The WAN Context Windows (Manual) node lets you manually configure context windows for Wan-style video models.

The WAN Context Windows (Manual) node lets you manually configure context windows for Wan-style video models. It applies these settings during sampling, giving you control over the window length, overlap, scheduling, and fusion method used while the model processes video. Context length and overlap are specified in real frames and are converted internally for the model's 2D processing.

## Inputs

| Parameter                | Description                                                                                                                  | Data Type | Required | Range                                                                                  |
| ------------------------ | ---------------------------------------------------------------------------------------------------------------------------- | --------- | -------- | -------------------------------------------------------------------------------------- |
| `model`                  | The model to apply context windows to during sampling.                                                                       | MODEL     | Yes      | -                                                                                      |
| `context_length`         | The length of the context window in real frames. Must be 4\*n + 1 (default: 81).                                             | INT       | Yes      | 1 to 16384 (MAX\_RESOLUTION), step 4                                                   |
| `context_overlap`        | The overlap of the context window in real frames (default: 30).                                                              | INT       | Yes      | 0 or higher                                                                            |
| `context_schedule`       | Step-dependent scheduling algorithm for context windows (default: "uniform\_standard").                                      | COMBO     | Yes      | `"static_standard"`<br />`"uniform_standard"`<br />`"uniform_looped"`<br />`"batched"` |
| `context_stride`         | The stride of the context window; only applicable to uniform schedules (default: 1).                                         | INT       | Yes      | 1 or higher                                                                            |
| `closed_loop`            | Whether to close the context window loop; only applicable to looped schedules (default: False).                              | BOOLEAN   | Yes      | -                                                                                      |
| `fuse_method`            | The method to use to fuse the context windows (default: "pyramid").                                                          | COMBO     | Yes      | `"pyramid"`<br />`"gaussian"`<br />`"average"`<br />`"overlap"`                        |
| `freenoise`              | Whether to apply FreeNoise noise shuffling, improves window blending (default: True).                                        | BOOLEAN   | Yes      | -                                                                                      |
| `retain_first_frame`     | Retain the first I2V frame in every context window (may help retain initial reference) (default: False).                     | BOOLEAN   | Yes      | -                                                                                      |
| `split_conds_to_windows` | Whether to split multiple conditionings (created by ConditionCombine) to each window based on region index (default: False). | BOOLEAN   | Yes      | -                                                                                      |

**Note:** `context_stride` only affects uniform schedules, and `closed_loop` only applies to looped schedules. The context length and overlap are specified in real frames and are automatically converted and clamped to minimum valid values during processing (`context_length` becomes ((length - 1) / 4) + 1, `context_overlap` becomes overlap / 4). `context_length` must follow the form 4\*n + 1. `retain_first_frame` is intended for image-to-video use. `split_conds_to_windows` expects multiple conditionings created by the ConditionCombine node. The `fuse_method` parameter includes several options beyond just "pyramid".

## Outputs

| Output Name | Description                                              | Data Type |
| ----------- | -------------------------------------------------------- | --------- |
| `model`     | The model with the applied context window configuration. | MODEL     |

> This documentation was AI-generated. If you find any errors or have suggestions for improvement, please feel free to contribute! [Edit on GitHub](https://github.com/Comfy-Org/embedded-docs/blob/main/comfyui_embedded_docs/docs/WanContextWindowsManual/en.md)

***

**Source fingerprint (SHA-256):** `cf4927371e9d4b509f2e6e5319cd6109e3ef36da6b3faee278bcf8c906672857`
