Ir para o conteúdo
Node packVerificadoExterno
Fonte aberta

ComfyUI-Tween

Mantenedor@ethanfelB · adoptionnota

Perfil do pacote

Status
Verificado
Publicador
@ethanfel
Fonte
GitHub

README

Tween — Video Frame Interpolation for ComfyUI

ComfyUI Python 3.10+ License Models

Six video frame interpolation models in one package — BIM-VFI, EMA-VFI, SGM-VFI, GIMM-VFI, SPEED, and LDF-VFI. Pairwise models include chunked/segmented processing; LDF-VFI adds holistic long-sequence diffusion interpolation.

Installation

Install from the ComfyUI Registry (recommended) or clone manually:

cd ComfyUI/custom_nodes
git clone https://github.com/Ethanfel/ComfyUI-Tween.git
pip install -r requirements.txt

Dependencies are declared in pyproject.toml and requirements.txt and are installed automatically by ComfyUI Manager or pip. There is intentionally no custom install.py, avoiding a second redundant dependency-install pass after Manager processes requirements.txt. LDF-VFI requires PyTorch 2.5+ plus a current diffusers/accelerate stack.

Demo workflow

Import example_workflows/tween_speed_bim_model_lab.json for the recommended starter graph. It requires ComfyUI-VideoHelperSuite for video loading and encoding.

  • The SPEED and BIM-VFI branches load the same 25-frame, 24 FPS sample, tune memory settings independently, interpolate to 48 FPS, preserve audio, and save separate comparison videos.
  • Keep the loader's force_rate, Tween's source_fps/target_fps, and Video Combine's frame_rate synchronized when changing cadence.

cupy (accelerates BIM-VFI, SGM-VFI, and GIMM-VFI)

cupy provides GPU-accelerated optical flow warping. It is deliberately not installed automatically, because replacing or mixing CUDA-specific cupy wheels can disrupt other ComfyUI nodes. BIM-VFI, SGM-VFI, and GIMM-VFI work without it through their PyTorch fallback. EMA-VFI, SPEED, and LDF-VFI do not use it.

  1. Find your CUDA version:

    python -c "import torch; print(torch.version.cuda)"
    
  2. Install the matching package:

    CUDACommand
    13.xpip install cupy-cuda13x
    12.xpip install cupy-cuda12x
    11.xpip install cupy-cuda11x

Make sure to run pip in the same Python environment as ComfyUI, and uninstall any different cupy wheel variant first. If cupy is absent or incompatible, Tween safely uses its PyTorch fallback.

ProblemSolution
ModuleNotFoundError: No module named 'cupy'Install cupy using the steps above
cupy installed but ImportError at runtimeCUDA version mismatch — uninstall and reinstall the correct version
Install hangs or takes very longConfirm pip selected a prebuilt wheel for your Python and CUDA versions
Docker / no build toolsUse the matching prebuilt cupy-cudaXXx wheel, not bare cupy which compiles from source

Which model should I use?

ModelBest forMultiplier pathTypical VRAMTrade-off
BIM-VFIStrong general pairwise qualityRecursive 2x/4x/8x~2 GB/pairResearch/education license
EMA-VFISpeed and lower VRAMRecursive 2x/4x/8x~1.5 GB/pairLess robust on extreme motion
SGM-VFILarge motionRecursive 2x/4x/8x~3 GB/pairSlowest pairwise option
GIMM-VFIArbitrary timesteps, efficient 4

Nós neste pacote

Nós 19
  • BIMVFIInterpolate
  • BIMVFISegmentInterpolate
  • EMAVFIInterpolate
  • EMAVFISegmentInterpolate
  • GIMMVFIInterpolate
  • GIMMVFISegmentInterpolate
  • LDFVFIInterpolate
  • LoadBIMVFIModel
  • LoadEMAVFIModel
  • LoadGIMMVFIModel
  • LoadLDFVFIModel
  • LoadSGMVFIModel
  • LoadSPEEDVFIModel
  • SGMVFIInterpolate
  • SGMVFISegmentInterpolate
  • SPEEDVFIInterpolate
  • SPEEDVFISegmentInterpolate
  • TweenConcatVideos
  • VFIOptimizer

Fontes

2 fontes
GitHubFonteVersão 15b88d16898c14aa0812672f86186a82f4769594
github.com/ethanfel/ComfyUI-Tween

Verificado 11 de out.

GitHubFonte
github.com/ethanfel/ComfyUI-Tween

Verificado 4 de nov.

Trechos de fonte

1 trecho

Source context: Repo ethanfel/ComfyUI-Tween