ComfyUI Extension: ComfyUI-SCAIL2-LongVideoContext
Run ComfyUI workflows without the setup
No installs, no CUDA version roulette, no GPU sitting idle on your bill. Bring a workflow and run it in the browser.
Smart context window model patches for SCAIL-2 long video workflows in ComfyUI.
Looking for a different extension?
Custom Nodes (2)
README
ComfyUI-SCAIL2-LongVideoContext
Smart long-video context window nodes for SCAIL-2 workflows in ComfyUI.
This custom node pack adds two model patch nodes:
- SCAIL-2 Smart Long Video Context
- SCAIL-2 Long Video Context
It is designed for SCAIL-2 / Wan long-video workflows that need temporal context windows, overlap handling, and 4n+1 frame alignment.
What it does
The node patches the incoming MODEL with ComfyUI's comfy.context_windows.IndexListContextHandler. It automatically converts pixel frame counts to latent context lengths, clamps frame counts to the 4n+1 pattern, and can preserve the reference condition index through cond_retain_index_list.
It does not replace the official SCAIL-2 nodes such as WanSCAILToVideo, SCAIL2ColoredMask, replacement_mode, previous_frames, or video_frame_offset. It is an additional model-context patch that can be used before sampling.
Installation
Clone this repository into your ComfyUI custom_nodes directory:
cd /path/to/ComfyUI/custom_nodes
git clone https://github.com/1GirlUniversity/ComfyUI-SCAIL2-LongVideoContext.git
Restart ComfyUI.
Requirements
- Recent ComfyUI build with
comfy.context_windowssupport. - SCAIL-2-capable ComfyUI core if you are using the official SCAIL-2 workflow.
- No extra Python package is required by this node pack.
Nodes
SCAIL-2 Smart Long Video Context
Automatic mode. Inputs:
modeltotal_framesstrategymanual_segment_lenmanual_segment_overlapcontext_schedulecontext_stridefuse_methodfreenoisecausal_window_fixbypass_when_single_passcond_retain_index_list
Strategies:
auto_smooth_rtx6000auto_safeauto_quality_rtx6000force_official_81_5manual
SCAIL-2 Long Video Context
Manual mode. Inputs:
modelsegment_lensegment_overlapcontext_schedulecontext_stridefuse_methodfreenoisecausal_window_fixcond_retain_index_list
Recommended workflow placement
Place the node after the diffusion model loader and before the sampler:
Diffusion Model Loader
↓
SCAIL-2 Smart Long Video Context
↓
Sampler
For total_frames, use the same effective frame count that goes into WanSCAILToVideo length, preferably adjusted to 4n+1:
frame_count -> a - ((a - 1) % 4) -> total_frames / length
Initial settings
Good starting point for high-VRAM NVIDIA GPUs:
strategy: auto_smooth_rtx6000
causal_window_fix: true
freenoise: false
cond_retain_index_list: 0
If you get OOM or excessive slowdown:
strategy: auto_safe
If you want conservative official-style chunking:
strategy: force_official_81_5
License
GPL-3.0
Run ComfyUI workflows without the setup
No installs, no CUDA version roulette, no GPU sitting idle on your bill. Bring a workflow and run it in the browser.