ComfyUI > Nodes > ComfyUI-BrushNet-Wrapper

ComfyUI Extension: ComfyUI-BrushNet-Wrapper

Repo Name

ComfyUI-BrushNet-Wrapper

Author
kijai (Account age: 2237 days)
Nodes
View all nodes(4)
Latest Updated
2024-06-20
Github Stars
0.12K

How to Install ComfyUI-BrushNet-Wrapper

Install this extension via the ComfyUI Manager by searching for ComfyUI-BrushNet-Wrapper
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter ComfyUI-BrushNet-Wrapper 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
  • High-speed GPU machines
  • 200+ preloaded models/nodes
  • Freedom to upload custom models/nodes
  • 50+ ready-to-run workflows
  • 100% private workspace with up to 200GB storage
  • Dedicated Support

Run ComfyUI Online

ComfyUI-BrushNet-Wrapper Description

ComfyUI-BrushNet-Wrapper integrates Diffusers' BrushNet into ComfyUI via wrapper nodes, enabling seamless use of BrushNet's features within the ComfyUI environment.

ComfyUI-BrushNet-Wrapper Introduction

The ComfyUI-BrushNet-Wrapper is an extension designed to integrate the BrushNet image inpainting model into the ComfyUI environment. BrushNet is a powerful tool for image inpainting, which means it can fill in missing parts of an image in a way that looks natural and seamless. This extension allows AI artists to use BrushNet's capabilities directly within ComfyUI, making it easier to enhance and repair images without needing extensive technical knowledge.

How ComfyUI-BrushNet-Wrapper Works

At its core, the ComfyUI-BrushNet-Wrapper acts as a bridge between ComfyUI and the BrushNet model. BrushNet uses a technique called diffusion, which gradually refines an image by adding and then removing noise, to fill in missing parts of an image. The wrapper simplifies the process of using BrushNet by providing user-friendly nodes within ComfyUI. These nodes handle the complex interactions with the BrushNet model, allowing you to focus on your creative work.

Imagine you have a torn photograph. BrushNet can "imagine" what the missing parts should look like and fill them in, making the photo look whole again. The wrapper makes it easy to apply this process to your images with just a few clicks.

ComfyUI-BrushNet-Wrapper Features

The ComfyUI-BrushNet-Wrapper comes with several features designed to enhance your image editing experience:

  • BrushNet Loader: This node loads the BrushNet model into ComfyUI. You can specify the data type (e.g., torch.float16 or torch.float32) depending on your hardware capabilities.
  • BrushNet Node: This is the main node where you can set parameters like scale, start_at, and end_at to control how BrushNet applies its inpainting magic. For example, increasing the scale makes the inpainting effect stronger.
  • PowerPaint Integration: PowerPaint is another inpainting model that can be used alongside BrushNet. You can load PowerPaint models and set parameters like fitting and function to customize its behavior.
  • RAUNet: This feature allows for advanced resizing and attention mechanisms, giving you more control over how the inpainting is applied.

ComfyUI-BrushNet-Wrapper Models

The extension supports different models, each suited for specific tasks:

  • BrushNet for SD 1.5: This model is ideal for general inpainting tasks and works well with standard image resolutions.
  • BrushNet for SDXL: This model is designed for higher-resolution images and requires additional conditioning for optimal results.
  • PowerPaint v2: This model is great for more complex inpainting tasks, such as object removal or outpainting (extending the edges of an image). Each model can be downloaded and placed in the appropriate folders within your ComfyUI setup. For example, BrushNet models should be placed in the models/inpaint folder.

What's New with ComfyUI-BrushNet-Wrapper

The extension is regularly updated to improve functionality and compatibility:

  • May 16, 2024: Internal rework to improve compatibility with other nodes. RAUNet is implemented.
  • May 12, 2024: Added CutForInpaint node for better handling of large images.
  • May 11, 2024: Image batch processing is implemented, allowing you to apply BrushNet to multiple images at once.
  • May 6, 2024: PowerPaint v2 model is implemented. Adjustments to the end_at parameter may be needed.
  • May 2, 2024: BrushNet SDXL is live, requiring positive and negative conditioning.
  • Apr 28, 2024: BrushNet is now native to ComfyUI, improving integration and performance.

Troubleshooting ComfyUI-BrushNet-Wrapper

Here are some common issues and their solutions:

  • Model Not Loading: Ensure that the model files are placed in the correct folders (models/inpaint for BrushNet).
  • Out of Memory Errors: Try switching the data type to torch.float32 or use the save_memory option in PowerPaint.
  • Inconsistent Results: Adjust the scale, start_at, and end_at parameters to fine-tune the inpainting effect.

Learn More about ComfyUI-BrushNet-Wrapper

For additional resources, you can explore the following:

ComfyUI-BrushNet-Wrapper Related Nodes

RunComfy

© Copyright 2024 RunComfy. All Rights Reserved.

RunComfy is the premier ComfyUI platform, offering ComfyUI online environment and services, along with ComfyUI workflows featuring stunning visuals.