Save 4 hours! We auto-setup your workflow! Free!

Drop your workflow.json — we handle every dependency, custom node, and model. Just open the link and run.

Auto-Setup Workflow Json (Free) Now!
ComfyUI > Nodes > ComfyTV > Inpaint

ComfyUI Node: Inpaint

Class Name

ComfyTV.InpaintStage

Category
ComfyTV/Image
Author
jtydhr88 (Account age: 5469days)
Extension
ComfyTV
Latest Updated
2026-06-11
Github Stars
0.06K

How to Install ComfyTV

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

Inpaint Description

Facilitates inpainting for seamless image restoration and object removal using advanced algorithms for natural results.

Inpaint:

The ComfyTV.InpaintStage node is designed to facilitate the process of inpainting, which is a technique used to reconstruct lost or deteriorated parts of images. This node is particularly useful for AI artists who wish to seamlessly fill in missing areas of an image or remove unwanted objects while maintaining the visual coherence of the artwork. By leveraging advanced algorithms, the InpaintStage node intelligently predicts and generates the content that should occupy the masked regions, ensuring that the final output appears natural and aesthetically pleasing. This capability is invaluable for tasks such as restoring old photographs, enhancing digital art, or creatively altering images without leaving noticeable traces of editing.

Inpaint Input Parameters:

project_id

The project_id parameter is used to specify the unique identifier for the project within which the inpainting operation is being executed. This helps in organizing and managing different projects, ensuring that the inpainting process is applied to the correct set of images. There are no specific minimum or maximum values for this parameter, as it is typically a string that uniquely identifies a project.

main_prompt

The main_prompt parameter serves as a guiding instruction for the inpainting process. It allows you to provide a textual description or directive that influences how the inpainting should be carried out. This can be particularly useful when you want the inpainting to adhere to a specific theme or style. The parameter does not have predefined options, as it is a free-form text input.

image

The image parameter is the path or URL to the image that requires inpainting. This input is crucial as it provides the base image on which the inpainting operation will be performed. The image should be in a format that is compatible with the node, such as PNG or JPEG. There are no specific minimum or maximum values, but the image should be accessible and properly formatted.

mask_data

The mask_data parameter contains the mask information that indicates which parts of the image need to be inpainted. This is typically provided as a base64-encoded string representing a binary mask image, where the masked areas are marked for inpainting. The accuracy and quality of the mask can significantly impact the results, as it defines the regions that will be reconstructed.

Inpaint Output Parameters:

output_image

The output_image parameter provides the final inpainted image as the result of the node's execution. This output is crucial as it represents the completed image with the previously masked areas filled in according to the inpainting process. The output image maintains the original format and resolution of the input image, ensuring consistency and quality.

Inpaint Usage Tips:

  • Ensure that the mask accurately covers the areas you wish to inpaint, as this will directly affect the quality of the results. A precise mask leads to more natural and seamless inpainting.
  • Use the main_prompt to guide the inpainting process towards a specific style or theme, especially if you are aiming for creative or artistic results. This can help the algorithm generate content that aligns with your vision.

Inpaint Common Errors and Solutions:

RuntimeError: InpaintStage: workflow returned no output

  • Explanation: This error occurs when the inpainting workflow fails to produce an output, possibly due to incorrect input parameters or an issue with the inpainting algorithm.
  • Solution: Verify that all input parameters are correctly specified, especially the image and mask_data. Ensure that the image is accessible and the mask is properly formatted. If the problem persists, consider checking the workflow configuration or consulting the documentation for further troubleshooting steps.

Inpaint Related Nodes

Go back to the extension to check out more related nodes.
ComfyTV
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.

Inpaint