Extensions/PCK VFI — Native GIMM-VFI Frame Interpolation
ComfyUI Extension

PCK VFI — Native GIMM-VFI Frame Interpolation

Native GIMM-VFI video frame interpolation: pure PyTorch, no cupy or extra dependencies, fp16, low VRAM support. Non-commercial license.

By PineCookie·Created 2 days ago·Updated 2 days ago· 0
PineCookie/ComfyUI-PCK-VFI
Nodes—
On cloudLocal install
Stars0
Updated2 days ago
Readme

ComfyUI-PCK-VFI

Video frame interpolation nodes for ComfyUI. Currently implements GIMM-VFI (RAFT variant) natively: pure PyTorch, no cupy, no extra dependencies.

Non-commercial use only. The model code is derived from GIMM-VFI and inherits its S-Lab License 1.0. See License.

Nodes

  • Load GIMM-VFI Model: loads a gimmvfi_r_* checkpoint from models/interpolation/gimm-vfi.
  • GIMM-VFI Interpolate: inserts multiplier - 1 frames between every pair of input frames.
    • flow_scale: resolution scale for motion estimation. Frames are always synthesized at full resolution. Lower values are much faster and use far less memory for a small quality loss (e.g. 0.5 for 1080p). It is lowered automatically when a frame pair would not fit in memory.
    • torch_compile (advanced, off by default): compiles the model with torch.compile (needs Triton). About 25-30% faster, but the first run at each new resolution spends 30-90 s compiling, so it only pays off for long clips.

Model

The loader always offers gimmvfi_r_arb_lpips_fp32.safetensors. If it is selected and not in ComfyUI/models/interpolation/gimm-vfi, running the loader downloads it there from Kijai/GIMM-VFI_safetensors (79 MB) and checks its SHA-256. Nothing else is ever downloaded. You can also place the file there yourself.

The flow estimator fine-tuned with GIMM-VFI is bundled in that checkpoint and is the one used here, as in the original repository. The separate raft-things file is not needed. The FlowFormer variant (gimmvfi_f_*) is not supported.

Notes

  • Runs in fp16 where ComfyUI considers it safe, with flow, warping and correlation math kept in float32.
  • Works with ComfyUI's low VRAM modes and on CPU. Only tested on an NVIDIA GPU and CPU.
  • Memory is dominated by the all-pairs correlation volume, which grows with the square of the flow resolution. As a rough guide from one test clip on a 16 GB card in fp16: about 5.5 GB at 720p with flow_scale 1.0, about 3 GB at 1080p with flow_scale 0.5, and about 9 GB at 1080p with flow_scale 1.0 (where it was automatically reduced to about 0.8).

License

S-Lab License 1.0, see LICENSE: redistribution and use are permitted for non-commercial purposes only; contact the GIMM-VFI authors for commercial use. Notices for GIMM-VFI, AMT (CC BY-NC 4.0) and RAFT (BSD 3-Clause) are in THIRD_PARTY_NOTICES.md.