Extensions/comfyui_bmab
ComfyUI Extension

comfyui_bmab

BMAB for ComfyUI. BMAB is an custom nodes of ComfyUI and has the function of post-processing the generated image according to settings. If necessary, you can find and…

By portu-sim·Created 2 years ago·Updated 8 months ago· 124
portu-sim/comfyui_bmab
Nodes69
On cloudLocal install
CategoryBMAB/imaging, BMAB/utils
Stars124
Updated8 months ago

Nodes (69)

BMAB Alpha Composit

Layering two images together, transparency and all

BMAB/imaging
BMAB Base64 Image

Getting an image into your graph from a string

BMAB/utils
BMAB Basic

The color-grading pass, no sampling required

BMAB/basic
BMAB Black And White

A one-input grayscale node, nothing more

BMAB/imaging
BMAB Blend

A straight opacity crossfade between two images

BMAB/imaging
CLIP Text Encode (SDXL)

The stock SDXL encoder, along for the ride

model/conditioning/stable diffusion
BMAB Conditioning To Bind

Getting your prompt into BMAB's pipeline

BMAB/utils
BMAB Context

The node every BMAB pipeline actually starts from

BMAB/sampler
BMAB ControlNet

Structural conditioning inside BMAB's own pipeline

BMAB/controlnet
BMAB ControlNet IPAdapter

The node that tells you what's missing

BMAB/controlnet
BMAB ControlNet Openpose

Pose conditioning, once you install its real dependency

BMAB/controlnet
BMAB Crop

A plain crop-and-optionally-resize node

BMAB/resize
BMAB Detail Anything

The detect-crop-resample-paste loop, on any mask you give it

BMAB/detailer
BMAB Detect And Mask

Turning an object detector into a usable mask

BMAB/imaging
BMAB Detect And Paste

Find a region, drop another image into it

BMAB/imaging
BMAB Detection Crop

Detect in one image, crop from another

BMAB/imaging
BMAB Detector

Run a YOLO model over your image, get a mask back

BMAB/imaging
BMAB Dummy

A pass-through node that exists to actually execute

BMAB/utils
BMAB Edge

Canny-style edge detection, blended back into the image

BMAB/basic
BMAB Extractor

Unpacking a BMAB bind back into standard ComfyUI types

BMAB/sampler
BMAB Face Detailer

Face-fixing with a segmentation mask option most detailers skip

BMAB/detailer
BMAB Flux ControlNet

Wiring structural control into BMAB's own pipeline

BMAB/controlnet
BMAB Flux Integrator

The entry point into a BMAB pipeline, for Flux

BMAB/sampler
BMAB Google Gemini API

Let Gemini write your prompt for you

BMAB/toy
BMAB Image Storage

Routing images to a specific connected client

BMAB/utils
BMAB Import Integrator

The node that hands your graph over to BMAB

BMAB/sampler
BMAB Inpaint

A self-contained, prompt-driven masked fill

BMAB/fill
BMAB Integrator

Model, clip, prompt, CLIP skip and prompt-weighting dialect, all in one node

BMAB/sampler
BMAB KSampler

The plain first-pass sampler in a BMAB pipeline

BMAB/sampler
BMAB KSampler Hires. Fix

The classic two-pass detail boost, BMAB-flavored

BMAB/sampler
BMAB KSampler Hires. Fix With Upscaler

The whole second pass in one node

BMAB/sampler
BMAB KSampler with Kohya Deep Shrink

High resolution without a second sampling pass

BMAB/sampler
BMAB Lama Inpaint

No-prompt object removal

BMAB/imaging
BMAB Load Image

Load Image, but it also tells you the size

BMAB/imaging
BMAB Load Output Image

Pull a previous render back into the graph

BMAB/imaging
BMAB Lora Loader

Stacking LoRAs inside BMAB's own pipeline

BMAB/loader
BMAB Masks To Images

See what your mask actually looks like

BMAB/imaging
BMAB Model To Bind

How model/clip/vae get into BMAB's pipeline

BMAB/utils
BMAB Noise Generator

A plain noise image, sized to match your pipeline

BMAB/utils
BMAB Normalize Size

Snap a width/height pair to a target scale

BMAB/utils
BMAB Openpose Hand Detailer

The pose-guided hand fixer — if GroundingDINO loaded

BMAB/detailer
BMAB Outpaint By Ratio

Standalone canvas extension, no bind required

BMAB/fill
BMAB Person Detailer

A detail pass for whole bodies, not just faces

BMAB/detailer
BMAB Preview Text

Check what a text pipeline actually produced

BMAB/basic
BMAB Prompt

A1111-style prompt weighting, inside ComfyUI

BMAB/sampler
BMAB Reframe

Change the aspect ratio without cropping anything out

BMAB/fill
BMAB Remote Access And Save

Save Image with an extra destination

BMAB/basic
BMAB Remove Background

Cutout plus mask in one node

BMAB/imaging
BMAB Resize And Fill

Pad to an exact canvas, no generation involved

BMAB/resize
BMAB Resize By Person

Auto-detect the subject, then frame around them

BMAB/resize
BMAB Resize By Ratio

The same framing engine, without needing a person

BMAB/resize
BMAB Save Image

A save node that plugs straight into a BMAB bind

BMAB/basic
BMAB SD-WebUI API BMAB Extension

Bridging ComfyUI to BMAB's original A1111 extension

BMAB/sdwebui
BMAB SD-WebUI API ControlNet

ComfyUI Node Guide

BMAB/sdwebui
BMAB SD-WebUI API I2I

ComfyUI Node Guide

BMAB/sdwebui
BMAB SD-WebUI API Server

ComfyUI Node Guide

BMAB/sdwebui
BMAB SD-WebUI API T2I

ComfyUI Node Guide

BMAB/sdwebui
BMAB SD-WebUI API T2I Hires.Fix

Driving an A1111/Forge instance from inside ComfyUI

BMAB/sdwebui
BMAB Seed Generator

One seed, wired to everything that needs it

BMAB/sampler
BMAB Segment Anything

ComfyUI Node Guide

BMAB/imaging
BMAB Simple Hand Detailer

The no-fuss fix for mangled hands

BMAB/detailer
BMAB Square

Force any image onto a square canvas without cropping it

BMAB/resize
BMAB Subframe Hand Detailer

GroundingDINO-precision hand fixes

BMAB/detailer
BMAB Text

ComfyUI Node Guide

BMAB/basic
BMAB ToBind

ComfyUI Node Guide

BMAB/sampler
BMAB Upscaler

The plain, honest pixel upscaler in BMAB's toolbox

BMAB/upscale
BMAB Upscale With Model

ComfyUI Node Guide

BMAB/upscale
BMAB Watermark

ComfyUI Node Guide

BMAB/basic
BMAB Zoom Out

Shrink your image onto a bigger canvas and fill the border

BMAB/resize
Readme

comfyui_bmab

BMAB is an custom nodes of ComfyUI and has the function of post-processing the generated image according to settings. If necessary, you can find and redraw people, faces, and hands, or perform functions such as resize, resample, and add noise. You can composite two images or perform the Upscale function.

<img src="https://i.ibb.co/341r93k/2024-05-21-10-56-02.png"/>

You can download sample.json.

https://github.com/portu-sim/comfyui_bmab/blob/main/resources/examples/example.json

Flux

BMAB now supports Flux 1.

https://github.com/portu-sim/comfyui_bmab/blob/main/resources/examples/bmab-flux-sample.json

<img src="https://github.com/user-attachments/assets/dfa36eb1-6978-47e7-a0d0-67c82639cf52"/>

New Nodes

BMAB Inpaint

<img width="1393" alt="image" src="https://github.com/user-attachments/assets/8bf15832-7be4-41f2-b8ac-64056d5ac4d9">

BMAB Reframe

<img width="1317" alt="image" src="https://github.com/user-attachments/assets/ba971f72-abfa-4998-a6cb-fcbaa245fcb5">

BMAB Outpaint By Ratio

<img width="1186" alt="image" src="https://github.com/user-attachments/assets/88255a25-6e56-427c-9683-6ea1f591e4dd">

Gallery

instagram
facebook

Hand Detailing Sample

BMAB detects and enlarges the upper body of a person and performs Openpose at high resolution to fix incorrectly drawn hands.

<img src="https://i.ibb.co/ZMGdXVp/resize-2024-05-23-1-42-12.png"/>

Installation

You can install comfyui_bmab using ComfyUI-Manager easily.
You will need to install a total of three custom nodes.

  • comfyui_bmab
  • comfyui_controlnet_aux
    • https://github.com/Fannovel16/comfyui_controlnet_aux.git
    • Fannovel16, Thanks for excellent code.
  • ComfyUI_IPAdapter_plus
    • https://github.com/cubiq/ComfyUI_IPAdapter_plus.git
    • cubiq, Thanks for excellent code.

Grounding DINO Installation

Transfomer v4.40.0 has Grounding DINO implementation.
https://github.com/huggingface/transformers/releases/tag/v4.40.0 Now BMAB use transformer for detecting object. No installation required.

Install Manually

I can't describe about your python environment. I will write the installation instructions assuming you have some knowledge of Python.

Windows portable User

cd ComfyUI/custom_nodes
git clone https://github.com/portu-sim/comfyui_bmab.git
cd comfyui_bmab
python_embeded\python.exe -m pip install -r requirements.txt
cd ..

You will need to install two additional custom nodes required by comfyui_bmab.

cd ComfyUI/custom_nodes
git clone https://github.com/Fannovel16/comfyui_controlnet_aux.git
cd comfyui_controlnet_aux
python_embeded\python.exe -r pip install requirements.txt
cd ..
git clone https://github.com/cubiq/ComfyUI_IPAdapter_plus.git
cd ComfyUI_IPAdapter_plus
python_embeded\python.exe -m pip install -r requirements.txt
cd ..

Other python environment

cd ComfyUI/custom_nodes
git clone https://github.com/portu-sim/comfyui_bmab.git
cd comfyui_bmab
pip install -r requirements.txt
cd ..

You will need to install two additional custom nodes required by comfyui_bmab.

cd ComfyUI/custom_nodes
git clone https://github.com/Fannovel16/comfyui_controlnet_aux.git
cd comfyui_controlnet_aux
pip install -r requirements.txt
cd ..
git clone https://github.com/cubiq/ComfyUI_IPAdapter_plus.git
cd ComfyUI_IPAdapter_plus
pip install -r requirements.txt
cd ..

Run ComfyUI