rembg-i
Remove background from a single image file using a choice of specialized models optimized for portraits, anime, clothing, or general subjects.
Instructions
Remove background from a single image file
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| input_path | Yes | Path to the input image file | |
| output_path | Yes | Path for the output image file | |
| model | No | Model to use for background removal. Each model is optimized for different use cases. | u2net |
| alpha_matting | No | Apply alpha matting for better edge quality | |
| only_mask | No | Return only the mask instead of the cutout |