https://github.com/DoctorDiffusion/ComfyUI-BEN
Background Erase Network - Remove backgrounds from images within ComfyUI.
https://github.com/DoctorDiffusion/ComfyUI-BEN
Last synced: 6 months ago
JSON representation
Background Erase Network - Remove backgrounds from images within ComfyUI.
- Host: GitHub
- URL: https://github.com/DoctorDiffusion/ComfyUI-BEN
- Owner: DoctorDiffusion
- License: apache-2.0
- Created: 2024-11-14T03:25:36.000Z (7 months ago)
- Default Branch: main
- Last Pushed: 2024-12-15T18:19:01.000Z (6 months ago)
- Last Synced: 2024-12-15T19:26:44.994Z (6 months ago)
- Language: Python
- Size: 290 KB
- Stars: 16
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-comfyui - **ComfyUI BEN - Background Erase Network**
README
# ComfyUI BEN - Background Erase Network
****
Remove backgrounds from images with [BEN](https://huggingface.co/PramaLLC/BEN) in [ComfyUI](https://github.com/comfyanonymous/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](https://huggingface.co/PramaLLC/BEN/tree/main) 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.

## Credits
- [comfyanonymous/ComfyUI](https://github.com/comfyanonymous/ComfyUI)
- [PramaLLC/BEN](https://huggingface.co/PramaLLC/BEN)
⭐ If you like the project, please give it a star! ⭐
## License
Apache 2.0 License### OUTPUTS CLEAR FOR COMMERCIAL USE
[PramaLLC](https://www.reddit.com/r/comfyui/comments/1gq8nx0/comment/m2733hy/?utm_source=share&utm_medium=web3x&utm_name=web3xcss&utm_term=1&utm_content=share_button) - "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. :)"