mirror of
https://github.com/OpenShot/OpenShot-ComfyUI.git
synced 2026-03-02 08:56:22 -08:00
df4f18f0ea08cac8fccfeaabd468bce0bcf6cbe9
OpenShot-ComfyUI
OpenShot-focused ComfyUI nodes for robust video workflows.
This V1 intentionally stays close to standard ComfyUI primitives and types while fixing long-video SAM2 pain points.
What this includes (V1)
OpenShotDownloadAndLoadSAM2ModelOpenShotSam2Segmentation(single-image)OpenShotSam2VideoSegmentationAddPointsOpenShotSam2VideoSegmentationChunked(meta-batch/chunk friendly)
Why this exists
Some existing SAM2 video nodes accumulate entire-video masks in memory and can OOM on longer clips. This pack provides chunk-safe behavior while keeping Comfy-native node patterns.
Attribution
This project is inspired by and partially based on ideas and APIs from:
kijai/ComfyUI-segment-anything-2- Meta SAM2 research/code
Please see upstream projects for full original implementations and credits.
Requirements
- ComfyUI
- PyTorch (as used by your Comfy install)
sam2Python package / module available to Comfy runtime
Install this node pack into ComfyUI/custom_nodes/OpenShot-ComfyUI and restart ComfyUI.
Models
OpenShotDownloadAndLoadSAM2Model auto-downloads supported SAM2 checkpoints into ComfyUI/models/sam2 if missing.
Notes
OpenShotSam2VideoSegmentationChunkedreturns only the requested chunk range (bounded memory) instead of collecting whole-video masks.- For very long videos, pair chunked outputs with batch-safe downstream nodes (VHS meta-batch, staged processing, or on-disk intermediates).
Description
Languages
Python
100%