6a2881e6bd579becd8a3ce95ac8f2e103c3bba79
ProPainter Nodes for ComfyUI
ComfyUI implementation of ProPainter models for video inpainting . The ProPainter models enable advanced video frame editing by leveraging deep learning techniques for seamless inpainting and outpainting tasks.
Features
- Inpainting: Fill in missing regions in video frames using the ProPainter model.
- Outpainting: Expand the boundaries of video frames by synthesizing realistic content beyond the original frame edges.
Installation
Manual Installation:
-
Clone this repository to
ComfyUI/custom_nodes:git clone https://github.com/yourusername/ComfyUI-ProPainter-Nodes.git -
Install the required dependencies:
pip install -r requirements.txt
Workflow example
Nodes Reference
ProPainter Inpainting
The ProPainter Inpainting node performs inpainting on video frames, filling in missing regions based on the surrounding content.
Input Parameters:
image: The video frames to be inpainted.mask: The mask indicating the regions to be inpainted. Mask must have same size of video frames.width: Width of the output images. (default: 640).height: Height of the output images. (default: 360).mask_dilates: Dilation size for the mask (default: 5).flow_mask_dilates: Dilation size for the flow mask (default: 8).ref_stride: Stride for reference frames (default: 10).neighbor_length: Length of the neighborhood for inpainting (default: 10).subvideo_length: Length of subvideos for processing (default: 80).raft_iter): Number of iterations for RAFT model (default: 20).fp16: Enable or disable FP16 precision (default: "enable").
Output:
IMAGE: The inpainted video frames.FLOW_MASK: The flow mask used during inpainting.MASK_DILATE: The dilated mask used during inpainting.
ProPainter Outpainting
The ProPainter Outpainting node extends the boundaries of video frames, generating new content beyond the original edges.
Input Parameters:
image: The video frames to be outpainted.width: Width of the video frames (default: 640).height: Height of the video frames (default: 360).width_scale: Scale factor for width expansion (default: 1.2).height_scale: Scale factor for height expansion (default: 1.0).mask_dilates: Dilation size for the mask (default: 5).flow_mask_dilates: Dilation size for the flow mask (default: 8).ref_stride: Stride for reference frames (default: 10).neighbor_length: Length of the neighborhood for outpainting (default: 10).subvideo_length: Length of subvideos for processing (default: 80).raft_iter: Number of iterations for RAFT model (default: 20).fp16: Enable or disable FP16 precision (default: "disable").
Output:
IMAGE: The outpainted video frames.OUTPAINT_MASK: The mask used during outpainting.output_width: The width of the outpainted frames.output_height: The height of the outpainted frames.
Languages
Python
100%