Skip to main content
The Context Windows (Manual) node allows you to manually configure context windows for models during sampling. It creates overlapping context segments with specified length, overlap, and scheduling patterns to process data in manageable chunks while maintaining continuity between segments. This node provides advanced options for controlling how context windows are applied, including noise shuffling, conditioning retention, and causal window fixes.

Inputs

ParameterDescriptionData TypeRequiredRange
modelThe model to apply context windows to during sampling.MODELYes-
context_lengthThe length of the context window (default: 16).INTNo1+
context_overlapThe overlap of the context window (default: 4).INTNo0+
context_scheduleThe stride of the context window.COMBONoSTATIC_STANDARD
UNIFORM_STANDARD
UNIFORM_LOOPED
BATCHED
context_strideThe stride of the context window; only applicable to uniform schedules (default: 1).INTNo1+
closed_loopWhether to close the context window loop; only applicable to looped schedules (default: False).BOOLEANNo-
fuse_methodThe method to use to fuse the context windows (default: PYRAMID).COMBONoPYRAMID
LIST_STATIC
dimThe dimension to apply the context windows to (default: 0).INTNo0-5
freenoiseWhether to apply FreeNoise noise shuffling, improves window blending (default: False).BOOLEANNo-
cond_retain_index_listList of latent indices to retain in the conditioning tensors for each window, for example setting this to ‘0’ will use the initial start image for each window (default: "").STRINGNo-
split_conds_to_windowsWhether to split multiple conditionings (created by ConditionCombine) to each window based on region index (default: False).BOOLEANNo-
causal_window_fixWhether to add a causal fix frame to non-0-indexed context windows (default: True).BOOLEANNo-
Parameter Constraints:
  • context_stride is only used when uniform schedules are selected
  • closed_loop is only applicable to looped schedules
  • dim must be between 0 and 5 inclusive
  • cond_retain_index_list expects a comma-separated list of integer indices as a string (e.g., “0,1,2”)

Outputs

Output NameDescriptionData Type
modelThe model with context windows applied during sampling.MODEL
This documentation was AI-generated. If you find any errors or have suggestions for improvement, please feel free to contribute! Edit on GitHub

Source fingerprint (SHA-256): 1351789e54e6b4013331014a49b98c6f8b79692ddabed7a64eeb7463cda03cc5