Saltar al contenido
Node packVerificadoExterno
Abrir fuente

ComfyUI-RIFE

RIFE video frame interpolation node for ComfyUI, based on Practical-RIFE implementation.

Responsable@er1cw00Unratedcalidad

Perfil del paquete

Estado
Verificado
Publicador
@er1cw00
Fuente
GitHub

Léeme

ComfyUI-RIFE

English | [中文](README_zhgit .md)

RIFE video frame interpolation node for ComfyUI, based on Practical-RIFE implementation.

Features

  • Real-time Video Frame Interpolation: Uses RIFE (Real-Time Intermediate Flow Estimation) algorithm to generate smooth intermediate frames between video frames
  • Automatic Model Download: Automatically downloads required models from GitHub Releases on first use
  • Model Caching: Automatically caches loaded models to avoid reloading
  • Multiple Precision Support: Supports float32, float16, and bfloat16 precision for speed/quality trade-off
  • Torch Compile: Optional PyTorch 2.0+ torch.compile() acceleration (slower first run, faster subsequent inference)
  • Batch Inference: Supports batch processing of interpolation tasks for higher throughput

Supported Models

Model NameVersionDescription
rife47.pth4.7RIFE version 4.7
rife49.pth4.7RIFE version 4.9
rife417.pth4.17RIFE version 4.17
rife426.pth4.26RIFE version 4.26 (ensemble not supported)

Models are automatically downloaded to ComfyUI/models/rife/ directory.

Installation

  1. Clone this repository into ComfyUI's custom_nodes directory:

    cd ComfyUI/custom_nodes
    git clone [email protected]:er1cw00/ComfyUI-RIFE.git ComfyUI-RIFE
    
  2. Install dependencies:

    cd ComfyUI-RIFE
    pip install -r requirements.txt
    

Node Parameters

RIFE_VFI

Required Parameters:

ParameterTypeDefaultDescription
ckpt_nameDropdown-Select RIFE model (auto-downloads if not present)
framesIMAGE-Input video frame sequence
clear_cache_after_n_framesINT10Clear GPU cache every N frames (1-1000)
multiplierINT2Interpolation multiplier, e.g., 2 generates 1 intermediate frame between each pair
fast_modeBOOLEANTrueFast mode, trade some quality for speed
ensembleBOOLEANTrueUse ensemble mode for better quality (forced off for v4.26)
scale_factorDropdown1.0Optical flow scale factor [0.25, 0.5, 1.0, 2.0, 4.0]
dtypeDropdownfloat32Inference precision: float32 (safest), float16 (fast/less VRAM), bfloat16 (requires RTX 30xx+)
torch_compileBOOLEANFalseUse torch.compile() for acceleration (requires PyTorch 2.0+)
batch_sizeINT1Number of interpolation tasks per batch (higher = more throughput but more VRAM, 1-64)

Optional Parameters:

ParameterTypeDescription
optional_interpolation_statesINTERPOLATION_STATESInterpolation state list for controlling frame skipping

Outputs:

OutputTypeDescription
IMAGEIMAGEInterpolated video frame sequence

Usage Example

Basic Workflow

  1. Load video frames using Load Video or Load Image Batch node
  2. Connect to RIFE_VFI node
  3. Select a model from the dropdown (e.g., rife426.pth)
  4. Set multiplier (e.g., 2 means 30fps → 60fps)
  5. Output using Save Video or Preview Image node

Parameter Tuning Suggestions

  • Quality Priority: dtype=float32, ensemble=True, fast_mode=False
  • Speed Priority: dtype=float16, fast_mode=True, torch_compile=True (PyTorch 2.0+)
  • Low VRAM: Reduce batch_size to 1, use dtype=float16
  • RTX 30xx/40xx: Can use dtype=bfloat16, more stable than float16 with similar speed

File Structure

ComfyUI-RIFE/
├── __init__.py          # Node registration entry
├── rife_node.py         # Main node implementation (model loading, inference)
├── rife_model.py        # RIFE IFNet model definition
├── requirements.txt     # Python dependencies
└── README.md           # This file (Chinese)
└── README_EN.md        # English version

Model Download Notes

Model files are automati

Nodos de este paquete

1 nodo
  • RIFE_VFI

Fuentes

3 fuentes
GitHubFuente
github.com/er1cw00/ComfyUI-RIFE

Verificado 7 nov

GitHubFuenteVersión ab2e1f58ab7db43cf9e2d56862d1daf9ece6a8a2
github.com/er1cw00/ComfyUI-RIFE

Verificado 10 oct

Extractos de fuentes

1 extracto

Source context: Repo er1cw00/ComfyUI-RIFE