We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Very simple post-processor. Doesn't really belong in the bridge
import rembg def strip_background(payload): session = rembg.new_session("u2net") image = rembg.remove( payload["source_image"], session=session, only_mask=False, alpha_matting=10, alpha_matting_foreground_threshold=240, alpha_matting_background_threshold=10, alpha_matting_erode_size=10, ) del session return image
Might be worth sending a PR to ComfyUI with it as an official node, but for now this should be OK
The text was updated successfully, but these errors were encountered:
This was resolved for the reGen worker as of #74
Sorry, something went wrong.
No branches or pull requests
Very simple post-processor. Doesn't really belong in the bridge
Might be worth sending a PR to ComfyUI with it as an official node, but for now this should be OK
The text was updated successfully, but these errors were encountered: