Nodes Browser

ComfyDeploy: How ComfyUI BEN - Background Erase Network works in ComfyUI?

What is ComfyUI BEN - Background Erase Network?

Remove backgrounds from images with [a/BEN](https://huggingface.co/PramaLLC/BEN) in ComfyUI

How to install it in ComfyDeploy?

Head over to the machine page

  1. Click on the "Create a new machine" button
  2. Select the Edit build steps
  3. Add a new step -> Custom Node
  4. Search for ComfyUI BEN - Background Erase Network and select it
  5. Close the build step dialig and then click on the "Save" button to rebuild the machine

ComfyUI BEN - Background Erase Network


Remove backgrounds from images with BEN in ComfyUI

Installation

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

Nodes

Background Erase Network

Outputs image of subject with alpha layer, combine with Image to Mask Node to get alpha mask as well.

ben

Credits

⭐ If you like the project, please give it a star! ⭐

License

Apache 2.0 License

OUTPUTS CLEAR FOR COMMERCIAL USE

PramaLLC - "You can use our BEN model commercially without any problem. Its under the Apache 2.0 license. The only commercial piece is the BEN+Refiner but the BEN_BASE is perfectly fine for commercial use. :)"