Skip to content
Node packVerifiedExternal
Open source

ComfyUI-Frame-Interpolation

A custom node set for Video Frame Interpolation in ComfyUI.

Maintainer@Fannovel16Bgrade

Package profile

Status
Verified
Publisher
@Fannovel16
Source
GitHub
Stars
1.1K

README

ComfyUI Frame Interpolation (ComfyUI VFI) (WIP)

A custom node set for Video Frame Interpolation in ComfyUI. UPDATE Memory management is improved. Now this extension takes less RAM and VRAM than before.

UPDATE 2 VFI nodes now accept scheduling multipiler values

Nodes

  • KSampler Gradually Adding More Denoise (efficient)
  • GMFSS Fortuna VFI
  • IFRNet VFI
  • IFUnet VFI
  • M2M VFI
  • RIFE VFI (4.0 - 4.9) (Note that option fast_mode won't do anything from v4.5+ as contextnet is removed)
  • FILM VFI
  • Sepconv VFI
  • AMT VFI
  • Make Interpolation State List
  • STMFNet VFI (requires at least 4 frames, can only do 2x interpolation for now)
  • FLAVR VFI (same conditions as STMFNet)
  • ATM-VFI (only supports 2x interpolation)
  • MoMo VFI (only supports 2x interpolation)

Install

ComfyUI Manager

Incompatibile issue with it is now fixed

Following this guide to install this extension

https://github.com/ltdrdata/ComfyUI-Manager#how-to-use

Command-line

Windows

Run install.bat

For Window users, if you are having trouble with cupy, please run install.bat instead of install-cupy.py or python install.py.

Linux

Open your shell app and start venv if it is used for ComfyUI. Run:

python install.py

Support for non-CUDA device (experimental)

If you don't have a NVidia card, you can try taichi ops backend powered by Taichi Lang

On Windows, you can install it by running install.bat or pip install taichi on Linux

Then change value of ops_backend from cupy to taichi in config.yaml

If NotImplementedError appears, a VFI node in the workflow isn't supported by taichi

Usage

All VFI nodes can be accessed in category ComfyUI-Frame-Interpolation/VFI if the installation is successful and require a IMAGE containing frames (at least 2, or at least 4 for STMF-Net/FLAVR).

Regarding STMFNet and FLAVR, if you only have two or three frames, you should use: Load Images -> Other VFI node (FILM is recommended in this case) with multiplier=4 -> STMFNet VFI/FLAVR VFI

clear_cache_after_n_frames is used to avoid out-of-memory. Decreasing it makes the chance lower but also increases processing time.

It is recommended to use LoadImages (LoadImagesFromDirectory) from ComfyUI-Advanced-ControlNet and ComfyUI-VideoHelperSuite along side with this extension.

Example

Simple workflow

Workflow metadata isn't embeded Download these two images anime0.png and anime1.png and put them into a folder like E:\test in this image.

Complex workflow

It's used in AnimationDiff (can load workflow metadata)

Credit

Big thanks for styler00dollar for making VSGAN-tensorrt-docker. About 99% the code of this repo comes from it.

Citation for each VFI node:

GMFSS Fortuna

The All-In-One GMFSS: Dedicated for Anime Video Frame Interpolation

https://github.com/98mxr/GMFSS_Fortuna

IFRNet

@InProceedings{Kong_2022_CVPR, 
  author = {Kong, Lingtong and Jiang, Boyuan and Luo, Donghao and Chu, Wenqing and Huang, Xiaoming and Tai, Ying and Wang, Chengjie and Yang, Jie}, 
  title = {IFRNet: Intermediate Feature Refine Network for Efficient Frame Interpolation}, 
  booktitle = {Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR)}, 
  year = {2022}
}

IFUnet

RIFE with IFUNet, FusionNet and RefineNet

https://github.com/98mxr/IFUNet

M2M

@InProceedings{hu2022m2m,
    title={Many-to-many Splatting for Efficient Video Frame Interpolation},
    author={Hu, Ping and Niklaus, Simon and Sclaroff, Stan and Saenko, Kate},
    journal={CVPR},
    year={2022}
    }

RIFE

Nodes in this pack

17 nodes
  • AMT VFI
  • ATM VFI
  • CAIN VFI
  • EISAI VFI
  • FILM VFI
  • FLAVR VFI
  • GMFSS Fortuna VFI
  • IFRNet VFI
  • IFUnet VFI
  • KSampler Gradually Adding More Denoise (efficient)
  • M2M VFI
  • Make Interpolation State List
  • MOMO VFI
  • RIFE VFI
  • Sepconv VFI
  • STMFNet VFI
  • VFI FloatToInt

Related resources

40 connections
Used byFLF2V - Wan 2.2 video generation first frame to last frame with frame interpolation — v1.2 low memory friendlyUsed bySVI 2 PRO with First/Last Frame (Keyframes) // Video Continuation // 3-Stage Loop AutomationUsed byWan Video ComfyUI (T2V & I2V) — v3.1Used by(Ultimate) Wan2.2 Smooth V2 Model Semi-Automatic Prompt Image-to-Video Generator Express Edition — v1.0Used byWAN 🌼 All In One | 12gb Vram* — WAN🌼 All In One 1.1Used byWAN2.1-VACE-14B 1.3B GGUF 6 steps AIO (t2v-i2v-v2v-FLF-controlnet-masking-long duration) simple ComfyUI workflow — VACE-Ultimate.v1.250724Used byEfficient first-last frame video generation workflow: 5 seconds per segment, and can generate continuously up to 15 seconds. — v1.0Used byWAN 2.1 FLF2V: Simple ComfyUI Workflow for First-Last Frame Video Generation (Low VRAM Friendly, Laptop) — v2.0-FirstFrameLastFrameUsed by【WAN2.1】StartEndFrames — v2.0Used byWan2.2 FLF2V (first last frame to video) for 3 (three) images — v1.1Used bySmooth Mix Wan 2.2: Text to Video (Smooth as Silk, Built-in Frame Interpolation) — v1.0Used byComprehensive Video Watermark Removal - minimax Version, Video Erasure, Online Supported超全视频去水印-minimax版本 视频抹除 支持在线 — v1Used bySocksLatentPatcher GGUF Subgraph — v1.0Used by【WAN2.1】TXT to VIDEO — v1.3Used bySimple WAN workflow — v0.1Used by【WAN2.1】StartEndFrames — v1.1Used byWan 2.2 Long video via multi-step actions — v1.1Used byWan Animated ComfyUI — v1.1Used byDaxamur's WAN 2.2 Workflows v1.2.1 (FLF2V | T2V | I2V | GGUF | Easy Bypass | Experimental True Endless Generation) — FLF2V v1.2.1Used byWan AiO (not ckpt) — v4Used byWAN i2v (Kijai Version) + Sage_Attn + Teacache (Native)+ VFI Interpolation/Upscale — v1.1.0Used byRecursive Image to Videol — WAN Infinite VideoUsed byWan2.2_I2V-MI2V-012 — v1.0Used byMy Simple NSFW WAN2.2 I2V Workflow + Upscale + Upframe — v1.0Used byWAN 2.2 FLF2V + I2V + Continuation for Infinite Loopage, Long Compositions, Not Sucking and Whatnot — v2.0Used by【WAN2.1】IMG to VIDEO — v1.5Used by【WAN2.1】IMG to VIDEO — v1.6Used by【WAN2.1】StartEndFrames — v1.0Used byKiko WanWrapper — v4.3-CausVidUsed byPost Processing IMG/VIDEO Any — v1.02Used by【WAN2.1】Video extension — v1.1Used byTheDirector — v2.1Used byWAN 2.2 14b i2v Workflow — v1.1Used byWAN 2.2 SVI Pro 2.0 I2V for 12GB VRAM Multi_anchor — v1.31Used byWAN 2.1 VACE - Extend, Crop+Stitch, Extra frame workflowUsed byDaSiWa Wan2.1 I2V Workflows — FastFidelity C-AiO 2.0Used byWan2.2 FunControl FreeLength V2V with Background Changer (Version 2) — v2.0Used byWan_2.2_FMLF Multi-frame First and Last Frames — v1.0Used byWan2.2 Video Change Clothes — v1.0Used byWan 2.2 - Ultimate SD Upscale + Interpolation - Batch Loader - Florence - Master 1.1 — v1.0

Sources

3 sources
GitHubSourceVersion 26545cc2dd95bc3d27f056016300673bdeee78f5
github.com/Fannovel16/ComfyUI-Frame-Interpolation

Verified Oct 3

Source excerpts

1 excerpt

Source context: Repo Fannovel16/ComfyUI-Frame-Interpolation