rembg-p
Process entire folders of images to remove backgrounds automatically. Supports various AI models for precise segmentation with options like alpha matting and mask-only output.
Instructions
Remove backgrounds from all images in a folder
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| input_folder | Yes | Path to the input folder containing images | |
| output_folder | Yes | Path to the output folder for processed images | |
| 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 masks instead of cutouts | |
| file_extensions | No | File extensions to process |