Nodes/ComfyUI/Context Windows (Manual)
ComfyUI Node Runs on cloud

Context Windows (Manual)

Manually set context windows.

By Comfy-Org·Created 4 years ago·Updated 15 days ago· 121,575
Context Windows (Manual)
  • model
  • MODEL
context_length16
context_overlap4
context_schedulestandard_static
context_stride1
closed_loopfalse
fuse_methodpyramid
dim0
freenoisefalse
cond_retain_index_list
split_conds_to_windowsfalse
latent_retain_index_list
causal_window_fixtrue
Categorymodel/patch

Inputs (13)

NameTypeDefaultDescription
modelMODELThe model to apply context windows to during sampling.
context_lengthINT16The length of the context window.
context_overlapINT4The overlap of the context window.
context_scheduleCOMBOstandard_staticStep-dependent scheduling algorithm for context windows.
context_strideINT1The stride of the context window; only applicable to uniform schedules.
closed_loopBOOLEANfalseWhether to close the context window loop; only applicable to looped schedules.
fuse_methodCOMBOpyramidThe method to use to fuse the context windows.
dimINT00–5The dimension to apply the context windows to.
freenoiseBOOLEANfalseWhether to apply FreeNoise noise shuffling, improves window blending.
cond_retain_index_listSTRINGList of latent indices to retain in the conditioning tensors for each window. For concat-style I2V models (e.g. Wan I2V, HunyuanVideo I2V, Cosmos I2V, SVD) the encoded start image lives in the c_concat conditioning channels; setting this to '0' will retain that start image content at sub-pos 0 of every window.
split_conds_to_windowsBOOLEANfalseWhether to split multiple conditionings (created by ConditionCombine) to each window based on region index.
latent_retain_index_listSTRINGList of latent indices to retain in the noise latent itself for each window. Use for workflows where reference content (e.g. a start image) lives directly in the noise latent rather than in separate conditioning channels (e.g. inplace-style I2V like LTXV, AnimateDiff). Independent of cond_retain_index_list.
causal_window_fixBOOLEANtrueWhether to add a causal fix frame to non-0-indexed context windows.

Outputs (1)

NameTypeDescription
MODELMODELThe model with context windows applied during sampling.