Install this extension via the ComfyUI Manager by searching
for ComfyWarp
1. Click the Manager button in the main menu
2. Select Custom Nodes Manager button
3. Enter ComfyWarp in the search bar
After installation, click the Restart button to
restart ComfyUI. Then, manually
refresh your browser to clear the cache and access
the updated list of nodes.
Visit
ComfyUI Online
for ready-to-use ComfyUI environment
ComfyWarp enhances ComfyUI by introducing nodes like LoadFrameSequence and LoadFrame, enabling users to efficiently manage and manipulate frame sequences within the interface.
ComfyWarp Introduction
ComfyWarp is an extension for ComfyUI that provides custom nodes to enhance your AI art workflows. It is designed to help AI artists create more dynamic and consistent animations by leveraging advanced techniques like optical flow and frame warping. Whether you're looking to create smooth transitions between frames or maintain consistency in your animations, ComfyWarp offers the tools you need to achieve professional results.
How ComfyWarp Works
ComfyWarp operates by manipulating frames in a sequence to create smooth transitions and maintain consistency. Here’s a simplified breakdown of how it works:
Frame Extraction: ComfyWarp starts by extracting frames from a video or a sequence of images.
Optical Flow Calculation: It calculates the optical flow between frames, which is essentially the motion of objects between two consecutive frames.
Frame Warping: Using the optical flow data, ComfyWarp warps frames to create smooth transitions.
Consistency Masks: It generates consistency masks to ensure that the transitions between frames are seamless and visually coherent.
By automating these complex processes, ComfyWarp allows you to focus on the creative aspects of your projects.
ComfyWarp Features
Make Frame Dataset
Description: This node allows you to input a path to a folder containing extracted frames.
Usage: Ideal for setting up your initial dataset of frames for processing.
Load Frame From Dataset
Description: Loads a specific frame from the frame folder.
Usage: Useful for accessing individual frames for further manipulation.
Extract Optical Flow
Description: Takes two frames as input and calculates the optical flow between them, along with consistency masks.
Usage: Essential for creating smooth transitions between frames.
WarpFrame
Description: Applies the calculated optical flow to a frame to warp it.
Usage: This is the core feature for creating smooth animations.
LoadFrameFromFolder
Description: Loads rendered frames from the output folder for loopback. If no frames are found, it returns an initial image.
Usage: Useful for iterative processes where frames are continuously updated.
LoadFramePairFromDataset
Description: Returns two frames: the current and the previous one.
Usage: Helps in comparing frames and calculating optical flow.
ResizeToFit
Description: Resizes an image to fit within specified dimensions while maintaining the aspect ratio.
Usage: Ensures that all frames are of consistent size.
SaveFrame
Description: Saves the current frame to a specified folder.
Usage: Useful for exporting processed frames.
MixConsistencyMaps
Description: Mixes consistency maps, applies blur, and dilates them.
Usage: Enhances the visual consistency of the frames.
ComfyWarp Models
ComfyWarp does not have different models per se, but it uses various techniques and algorithms like optical flow and consistency masks to achieve its results. These techniques can be customized through the nodes to fit different artistic needs.
What's New with ComfyWarp
Version 0.1.0
Introduction of Warp and Consistency Nodes: Basic functionality for warping frames and maintaining consistency.