2687c36dd8f29b9b41a762948d7f3654f9e02896
ComfyUI-BrushNet
Custom nodes for ComfyUI allow to inpaint using Brushnet: "BrushNet: A Plug-and-Play Image Inpainting Model with Decomposed Dual-Branch Diffusion".
My contribution is limited to the ComfyUI adaptation, and all credit goes to the authors of the paper.
Installation
Clone the repo into the custom_nodes directory and install the requirements:
git clone https://github.com/nullquant/ComfyUI-BrushNet.git
pip install -r requirements.txt
Checkpoints of BrushNet can be downloaded from here.
Both segmentation_mask_brushnet_ckpt and random_mask_brushnet_ckpt should be placed inside models/inpaint/brushnet folder.
Base model should be SD1.5 type (realisticVisionV60B1_v51VAE, for example).
Usage
Below is an example for the intended workflow. The json file for the example can be found inside the 'example' directory.
Bugs
- Nodes use custom
diffuserslibrary. It can potentially conflicts with other custom nodes. - Sometimes
BrushNetPipelinefreezes on loading. Looking into the problem.
Credits
The code is based on
Languages
Python
100%
