MCPcopy Create free account
hub / github.com/Artificial-Sweetener/comfyui-WhiteRabbit

github.com/Artificial-Sweetener/comfyui-WhiteRabbit @main

Chat with this repo
repository ↗ · DeepWiki ↗ · + Follow
119 symbols 281 edges 6 files 13 documented · 11% updated 32d ago★ 83

Browse by type

Functions 103 Types & classes 16
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

WhiteRabbit: Master the Flow of Time 🐇

Comfy Registry version Comfy Registry downloads Python License: AGPL-3.0

English | 简体中文

This is WhiteRabbit, a nodepack designed to help you work with video from within ComfyUI.

The Rabbit's specialty is looping through time to help you create seamless looping video, but that's not all she brings to the tea party. Quality, arbitrary framerate resampling and super fast image resizing are also part of the kit!

While some of these nodes certainly can be used for single-image tasks, every one of them is designed with efficient batch handling in mind and that means the performance gains compound, letting you process whole video clips as fast as possible within your hardware constraints.

Installation

  1. Drop the WhiteRabbit folder into ComfyUI/custom_nodes/.
  2. Install the node requirements with ComfyUI's Python environment:

powershell python -m pip install -r requirements.txt

WhiteRabbit uses ComfyUI's native models/frame_interpolation/ directory. Select RIFE 4.7, 4.9, 4.25, or 4.26 in any WhiteRabbit RIFE node. A missing catalog checkpoint downloads automatically into that directory when the selected model is first needed for inference, and is verified by SHA-256 before use.

Python requirements

This node relies on the Python packages supplied by ComfyUI. The node-local requirement adds the gamma-correct Lanczos resampler:

torchlanc>=1.1.0

The Nodes

This pack of nodes helps you solve some of the trickiest problems in video creation.

Time Benders

These nodes bend time itself to add or remove frames with RIFE 4.7, 4.9, 4.25, and 4.26. They share ComfyUI-managed model instances across a workflow and retain WhiteRabbit's scale pyramid, internal bidirectional ensemble, arbitrary timing, FPS conversion, and seam analysis. RIFE VFI FPS Resample also brings stabilization controls to the tea party.

  • RIFE VFI Interpolate by Multiple: The basic tool for frame interpolation. Multiply your frames by 2×, 4×, etc., and it’ll generate the new frames needed to make your video silky smooth.
  • RIFE VFI FPS Resample: A master of time travel. Convert your video to a specific target frame rate, automatically handling both adding and dropping frames as needed. Includes features to prevent common artifacts like flicker for a clean result.
  • RIFE VFI Custom Timing: Ready for total control? Place every new frame with surgical precision. Create custom speed ramps or smooth out specific moments by providing a custom timing list.
  • RIFE Seam Timing Analyzer: The perfect companion to the custom timing node. Automatically calculates the exact timing for a seamless loop, giving you the CSV values you need to make your transition feel flawless.

resample_framerate

Example: The RIFE VFI FPS Resample node is a master of time, resampling your video to a new frame rate. Try for yourself; the workflow is attached!

Loop Masters

Making a seamless video loop can feel like a riddle. These nodes give you the keys to the perfect, continuous loop.

  • Prepare Loop Frames: The first step. This node takes your entire video and prepares the loop "seam" by isolating the last and first frames into a separate batch. This little pair is all your interpolator needs to get started on the transition.
  • Assemble Loop Frames: The final piece. After your interpolator works its magic, this node takes your original video and appends the new seam frames to the end, assembling your complete, continuous loop.
  • Autocrop to Loop: Don't get lost in the forest of frames! This clever node intelligently analyzes your video to find the best possible place to crop from the end, ensuring your loop flows as smoothly as can be.
  • Trim Batch Ends: A simple tool for trimming a fixed number of frames from the beginning or end of your clip, perfect for removing unwanted intros or outros.
  • Roll Frames: Change the order of the images in a batch cyclically. In the context of a loop, this will change on what frame your loop starts.
  • Unroll Frames: Undo the work done by the above node; you may want to roll frames for a specific process (like interpolation) before returning them to their original order. This node comes with the ability to add a frame multiplier to put it in sync with a RIFE VFI Interpolate by Multiple that comes before.

interpolate_loop_seam

Example: Stitch a seamless loop with Prepare Loop FramesRIFE Seam Timing AnalyzerRIFE VFI Custom TimingAssemble Loop Frames. You can drop this PNG into ComfyUI and take it for a test drive!

interpolate_loop_seam

Example: The best loop is the one you already have. Autocrop to Loop can help you find the best end frame by analyzing the visual difference and timing between trailing frames in your clip.

Post-Processing

These nodes play support!

  • Batch Resize w/ Lanczos: Fast, principled, and uncompromising in quality. This CUDA‑accelerated node resizes a batch of images (or your single images, of course) using the high‑quality Lanczos algorithm written for PyTorch; TorchLanc. It’s dramatically faster than CPU alternatives like Pillow's own Lanczos, with potential for up to a 10× speed increase.
  • Upscale w/ Model (Advanced): A version of ComfyUI's own "Upscale Image (Using Model)" but with direct controls exposed for batch size and tiling which can help speed up scaling dramatically if you tune the numbers to your system.
  • Pixel Hold: Can be used to reduce video flicker and clean up static parts of a video by reducing small fluctuations caused by video diffusion or compression. There is the potential to use this creatively because it can also take an input image as its baseline.
  • Watermark: For single images or batches. Very quick, especially when compared to doing the same task in pro editing tools.

resize

Example: Resize images quickly with Batch Resize w/ Lanczos. Workflow attached!!

resize_with_model_to_target

Example: Use Upscale w/ Model (Advanced) in concert with Batch Resize w/ Lanczos to reach a specific target size like so. The image is holding onto the workflow for you.

watermark

Example: Apply a watermark to each frame rapidly with smart configuration options. Workflow included.

License

WhiteRabbit is Free and Open Source Software (FOSS), distributed under the GNU Affero General Public License v3.0.

Acknowledgements

WhiteRabbit stands on an extraordinary amount of work from other people. I am genuinely grateful to all of them.

  • ComfyUI: Thank you to comfyanonymous, Comfy Org, and everyone who contributes to ComfyUI. Its runtime, model management, and open node ecosystem make WhiteRabbit possible.
  • ComfyUI-Frame-Interpolation: I'm grateful to Fannovel16 and the contributors to ComfyUI-Frame-Interpolation. Their work brought practical RIFE interpolation to ComfyUI and provided an invaluable technical reference for WhiteRabbit's enhanced RIFE support.
  • KJNodes: Kijai and the contributors to KJNodes inspired the UI for Batch Resize w/ Lanczos.

Research citations

This node pack uses RIFE (IFNet) for video frame interpolation. You can read the white paper here.

@inproceedings{huang2022rife,
  title={Real-Time Intermediate Flow Estimation for Video Frame Interpolation},
  author={Huang, Zhewei and Zhang, Tianyuan and Heng, Wen and Shi, Boxin and Zhou, Shuchang},
  booktitle={European Conference on Computer Vision (ECCV)},
  year={2022}
}

From the Developer ❤️

I hope you love using these nodes as much as I loved putting them together!

  • Buy Me a Coffee: You can help fuel more projects like this at my Ko-fi page.
  • My Website & Socials: See my art, poetry, and other dev updates at artificialsweetener.ai.
  • If you like this project, it would mean a lot to me if you gave me a star here on Github!! ⭐

Core symbols most depended-on inside this repo

browse all functions →

Shape

Method 63
Function 40
Class 16

Languages

Python100%

Modules by API surface

interpolation.py38 symbols
video_loop.py30 symbols
scaling.py20 symbols
noise_control.py17 symbols
post_process.py14 symbols

For agents

$ claude mcp add comfyui-WhiteRabbit \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page