Remove backgrounds from images with BEN in ComfyUI
git clone https://github.com/DoctorDiffusion/ComfyUI-BEN.git
cd ComfyUI-BEN
pip install -r requirements.txt
Go to the BEN huggingface page and download BEN_Base.pth
, and model.py
and place them inside:
...ComfyUI/custom-nodes/ComfyUI-BEN/
The folder should look like this:
└── ComfyUI/custom-nodes/ComfyUI-BEN/
├── __init__.py
├── background_erase_network.py
├── ben.png
├── BEN_Base.pth
├── model.py
├── README.md
└── requirements.txt
Outputs image of subject with alpha layer, combine with Image to Mask Node to get alpha mask as well.
⭐ If you like the project, please give it a star! ⭐
While this is under an Apache 2.0 License, PramaLLC has restricted the use of their model from commercial use. Go to the PramaLLC page for more information about their model use restrictions.