BrushNet
Run ComfyUI Easily with InstaSD
Skip the complex setup. InstaSD helps creative professionals build workflows and deploy them to the world:
- One-click deployment
- Any model, any node
- Powerful GPUs for rapid iteration
These are custom nodes for ComfyUI native implementation of BrushNet, PowerPaint and RAUNet models
Available Nodes
PowerPaint
PowerPaint Node Documentation
Overview
The PowerPaint node in ComfyUI-BrushNet provides advanced image inpainting functionalities. It's designed to integrate seamlessly into the ComfyUI framework by leveraging the PowerPaint model. This model, inspired by the paper "A Task is Worth One Word: Learning with Task Prompts for High-Quality Versatile Image Inpainting", focuses on high-quality, versatile image inpainting, enabling tasks like outpainting and object removal with remarkable effectiveness.
Functionality
The PowerPaint node allows users to employ sophisticated image inpainting techniques to fill in missing parts of an image, effectively remove unwanted objects, or expand the image beyond its original borders (outpainting). It does so by intelligently combining the input image data with task-specific prompts.
Inputs
Required Inputs
-
CLIP: PowerPaint CLIP, which must be sourced from the
PowerPaintCLIPLoadernode. This input is essential for encoding textual prompts that guide the inpainting process. -
Fitting Degree: This parameter determines the degree of fitting used by the PowerPaint model during inpainting. It allows users to control how strictly the inpainting aligns with the provided prompts.
-
Function: A parameter specifying the inpainting function to be used. Users should refer to the PowerPaint GitHub page for detailed function descriptions and options.
Optional Inputs
- Save Memory: A setting aimed at reducing memory consumption. When enabled, the attention module processes input tensors in slices, which can help mitigate VRAM limitations at the expense of processing speed. Particularly useful for users experiencing VRAM shortages or encountering memory-related errors on systems like Mac.
Outputs
The PowerPaint node outputs an inpainted image that integrates seamlessly into ComfyUI's workflow. The output consists of an image where specified tasks, such as object removal or outpainting, have been applied based on the user's prompts and settings.
Usage in ComfyUI Workflows
The PowerPaint node fits into ComfyUI workflows where advanced image inpainting requirements exist. Here's how it might be used:
-
Image Preparation: Before using PowerPaint, the user should load necessary models and conditioning data through respective nodes like BrushNet or PowerPaintCLIPLoader.
-
Node Integration: Insert the PowerPaint node into the workflow where inpainting tasks are needed. Use it to handle tasks like filling incomplete areas, removing objects, or extending images beyond their original scope.
-
Prompt Management: Users are encouraged to incorporate task-specific phrases such as "empty scene" or "outpainting instructions" in their prompts to help guide the model’s output accurately.
Special Features and Considerations
-
Task-Specific Prompts: The PowerPaint node excels with task-focused textual prompts. For effective object removal, users might add descriptors of the unwanted object in negative prompts and detail the intended scene in positive prompts to achieve the best results.
-
Memory Management: The node includes a memory-saving feature, allowing users to run inpainting tasks on systems with limited VRAM or those experiencing specific memory errors.
-
Performance Considerations: Some testing and adjusting of inputs may be required to ensure optimal results, particularly for unusual mask shapes or scenes not well-aligned with model training datasets.
For advanced users, using the PowerPaint node with complementary nodes like BrushNet or LoRA can unlock even wider creative potentials, tailoring workflows to specific project needs and yielding high-quality image inpainting results in ComfyUI environments.