
Many thanks to the author of rembg-comfyui-node for his very nice work, this is a very useful tool!
But I found something that could refresh this project to better results with better maneuverability!
In this project, you can choose the onnx model you want to use, different models have different effects! Choosing the right model for you will give you better results!
Example of use
custom_nodes folder in ComfyUI:git clone https://github.com/Loewen-Hob/rembg-comfyui-node-better.git
rembg[gpu] (recommended) or rembg, depending on GPU support, to your ComfyUI virtual environment. E.g.:pip install rembg[gpu]
torch Pillow numpy.Image Remove Background (rembg) node and select the model you want to use!All models are downloaded and saved in the user home folder in the .u2net directory.
The available models are:
sam model is not easy to use, and I’d like to refine this feature in the future.alpha_matting=True, alpha_matting_foreground_threshold=270, only_mask=True.....I will set these adjustable parameters in the options of the node later on in my work, which will give better results!