ComfyUI custom nodes for running the Kiwi Edit diffusers pipeline on a video frame batch.
The nodes appear under the top-level KiwiEdit category.
Kiwi Edit Load Video- Loads a video file from disk.
- Returns the frames as a ComfyUI
IMAGEbatch.
Kiwi Edit Video- Runs the
linyq/kiwi-edit-5b-instruct-reference-diffuserspipeline. - Accepts an
IMAGEbatch as input. - Supports an optional
ref_imageinput.
- Runs the
Kiwi Edit Save Video- Saves an
IMAGEbatch to MP4. - Writes into the ComfyUI output directory by default.
- Saves an
- Place this folder inside
ComfyUI/custom_nodes/. - Install the dependencies into the same Python environment that ComfyUI uses.
- Restart ComfyUI.
Example on this Windows setup:
g:\comfy\python_embeded\python.exe -m pip install -r requirements.txtIf you only need to fix the known dependency conflict:
g:\comfy\python_embeded\python.exe -m pip install -U "peft>=0.17.0"- Add
Kiwi Edit Load Videoand point it to an input video. - Connect its
framesoutput toKiwi Edit Video. - Enter your edit prompt.
- Save the generated result with
Kiwi Edit Save Video.
If you already use another loader that outputs an IMAGE batch, you can connect that directly to Kiwi Edit Video and skip Kiwi Edit Load Video.
- The model is loaded lazily when
Kiwi Edit VideoorKiwi Edit Save Videoruns. - This means the node pack can still appear in ComfyUI even if the diffusers runtime stack is not fully usable yet.
- If the runtime dependencies are incomplete, the node will fail when executed rather than disappearing from the node list.
Check ComfyUI/user/comfyui.log for an import failure.
Common causes:
peftis too old for the installeddiffusersversion.- Dependencies were installed into a different Python environment than the one ComfyUI is using.
- ComfyUI was not restarted after changing the node files.
This ComfyUI install is using:
- Python executable:
g:\comfy\python_embeded\python.exe - Log file:
g:\comfy\ComfyUI\user\comfyui.log
Usually this means the node pack loaded successfully, but the runtime dependencies are still missing or incompatible.
Reinstall the requirements with the ComfyUI Python executable:
g:\comfy\python_embeded\python.exe -m pip install -r requirements.txtSearch for Kiwi in the Add Node dialog, or browse the top-level KiwiEdit category.