ComfyUI > Nodes > ComfyUI > VOIDInpaintConditioning

ComfyUI Node: VOIDInpaintConditioning

Class Name

VOIDInpaintConditioning

Category
conditioning/video_models
Author
ComfyAnonymous (Account age: 763days)
Extension
ComfyUI
Latest Updated
2026-05-13
Github Stars
112.77K

How to Install ComfyUI

Install this extension via the ComfyUI Manager by searching for ComfyUI
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter ComfyUI 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

  • Free trial available
  • 16GB VRAM to 80GB VRAM GPU machines
  • 400+ preloaded models/nodes
  • Freedom to upload custom models/nodes
  • 200+ ready-to-run workflows
  • 100% private workspace with up to 200GB storage
  • Dedicated Support

Run ComfyUI Online

VOIDInpaintConditioning Description

Prepare video data for inpainting using VAE encoding in VOID framework for CogVideoX model.

VOIDInpaintConditioning:

VOIDInpaintConditioning is a specialized node designed for inpainting tasks within the VOID framework, particularly tailored for video processing using the CogVideoX model. This node's primary function is to prepare and condition video data and associated masks for inpainting by encoding them through a Variational Autoencoder (VAE). It processes a quadmask and a masked source video to generate a 32-channel concatenated conditioning, which is then used in conjunction with noise latents to facilitate the inpainting process. The node ensures that the temporal dimensions of the video and mask are aligned, and it handles the necessary scaling and transformation to maintain compatibility with the model's requirements. By doing so, VOIDInpaintConditioning enables seamless integration of masked video data into the inpainting pipeline, ensuring that the model can effectively reconstruct or modify video content based on the provided masks.

VOIDInpaintConditioning Input Parameters:

video

The video parameter represents the source video data that needs to be inpainted. It is crucial for providing the visual content that will be processed and modified by the inpainting model. The video is typically expected to be in a format compatible with the node's processing capabilities, and its length may be adjusted to ensure compatibility with the model's temporal requirements.

quadmask

The quadmask parameter is a mask that defines the regions of the video to be inpainted. It quantizes mask values to four semantic levels, indicating areas to remove, overlap, affected regions, and background. This mask is processed to align with the video data and is used to guide the inpainting process by specifying which parts of the video should be altered or preserved.

length

The length parameter specifies the temporal length of the video and mask data to be processed. It is adjusted to ensure compatibility with the model's requirements, particularly to avoid issues with circular padding that can corrupt the last frame. The length is crucial for determining the temporal dimensions of the latent representations used in the inpainting process.

height

The height parameter defines the height of the video frames after processing. It is used to calculate the spatial dimensions of the latent representations and ensure that the video data is correctly scaled and aligned for inpainting.

width

The width parameter specifies the width of the video frames after processing. Similar to the height parameter, it is used to determine the spatial dimensions of the latent representations and ensure proper scaling and alignment of the video data for inpainting.

VOIDInpaintConditioning Output Parameters:

inpaint_latents

The inpaint_latents output is a concatenated latent representation consisting of encoded mask and video data. This 32-channel latent is used as conditioning input for the inpainting model, providing the necessary information to guide the reconstruction or modification of the video content based on the specified masks.

VOIDInpaintConditioning Usage Tips:

  • Ensure that the video and quadmask inputs are properly aligned in terms of temporal dimensions to avoid processing errors and ensure effective inpainting results.
  • Adjust the length parameter to match the desired temporal extent of the video data, keeping in mind the model's requirements for even temporal dimensions to prevent frame corruption.

VOIDInpaintConditioning Common Errors and Solutions:

" VOIDInpaintConditioning: rounding length %d down to %d so that latent_t is even"

  • Explanation: This warning indicates that the specified length was adjusted to ensure compatibility with the model's temporal requirements, specifically to avoid issues with circular padding.
  • Solution: Verify the input length and ensure it aligns with the model's requirements. Adjust the length parameter as needed to avoid this warning and ensure smooth processing.

"Mismatch in video and mask dimensions"

  • Explanation: This error occurs when the dimensions of the video and mask inputs do not match, leading to processing issues.
  • Solution: Ensure that the video and quadmask inputs have compatible dimensions, particularly in terms of temporal length, to prevent this error and facilitate effective inpainting.

VOIDInpaintConditioning Related Nodes

Go back to the extension to check out more related nodes.
ComfyUI
RunComfy
Copyright 2025 RunComfy. All Rights Reserved.

RunComfy is the premier ComfyUI platform, offering ComfyUI online environment and services, along with ComfyUI workflows featuring stunning visuals. RunComfy also provides AI Models, enabling artists to harness the latest AI tools to create incredible art.

VOIDInpaintConditioning