Add GIMM-VFI support (NeurIPS 2024) with single-pass arbitrary-timestep interpolation
Integrates GIMM-VFI alongside existing BIM/EMA/SGM models. Key feature: generates all intermediate frames in one forward pass (no recursive 2x passes needed for 4x/8x). - Vendor gimm_vfi_arch/ from kijai/ComfyUI-GIMM-VFI with device fixes - Two variants: RAFT-based (~80MB) and FlowFormer-based (~123MB) - Auto-download checkpoints from HuggingFace (Kijai/GIMM-VFI_safetensors) - Three new nodes: Load GIMM-VFI Model, GIMM-VFI Interpolate, GIMM-VFI Segment Interpolate - single_pass toggle: True=arbitrary timestep (default), False=recursive like other models - ds_factor parameter for high-res input downscaling Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
15
__init__.py
15
__init__.py
@@ -34,6 +34,14 @@ def _auto_install_deps():
|
||||
except Exception as e:
|
||||
logger.warning(f"[Tween] Could not auto-install cupy: {e}")
|
||||
|
||||
# GIMM-VFI dependencies
|
||||
for pkg in ("omegaconf", "yacs", "easydict", "einops", "huggingface_hub"):
|
||||
try:
|
||||
__import__(pkg)
|
||||
except ImportError:
|
||||
logger.info(f"[Tween] Installing {pkg}...")
|
||||
subprocess.check_call([sys.executable, "-m", "pip", "install", pkg])
|
||||
|
||||
|
||||
_auto_install_deps()
|
||||
|
||||
@@ -41,6 +49,7 @@ from .nodes import (
|
||||
LoadBIMVFIModel, BIMVFIInterpolate, BIMVFISegmentInterpolate, TweenConcatVideos,
|
||||
LoadEMAVFIModel, EMAVFIInterpolate, EMAVFISegmentInterpolate,
|
||||
LoadSGMVFIModel, SGMVFIInterpolate, SGMVFISegmentInterpolate,
|
||||
LoadGIMMVFIModel, GIMMVFIInterpolate, GIMMVFISegmentInterpolate,
|
||||
)
|
||||
|
||||
WEB_DIRECTORY = "./web"
|
||||
@@ -56,6 +65,9 @@ NODE_CLASS_MAPPINGS = {
|
||||
"LoadSGMVFIModel": LoadSGMVFIModel,
|
||||
"SGMVFIInterpolate": SGMVFIInterpolate,
|
||||
"SGMVFISegmentInterpolate": SGMVFISegmentInterpolate,
|
||||
"LoadGIMMVFIModel": LoadGIMMVFIModel,
|
||||
"GIMMVFIInterpolate": GIMMVFIInterpolate,
|
||||
"GIMMVFISegmentInterpolate": GIMMVFISegmentInterpolate,
|
||||
}
|
||||
|
||||
NODE_DISPLAY_NAME_MAPPINGS = {
|
||||
@@ -69,4 +81,7 @@ NODE_DISPLAY_NAME_MAPPINGS = {
|
||||
"LoadSGMVFIModel": "Load SGM-VFI Model",
|
||||
"SGMVFIInterpolate": "SGM-VFI Interpolate",
|
||||
"SGMVFISegmentInterpolate": "SGM-VFI Segment Interpolate",
|
||||
"LoadGIMMVFIModel": "Load GIMM-VFI Model",
|
||||
"GIMMVFIInterpolate": "GIMM-VFI Interpolate",
|
||||
"GIMMVFISegmentInterpolate": "GIMM-VFI Segment Interpolate",
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user