tessl install tessl/pypi-rembg@2.0.0Remove image background using advanced AI models including U-Net, BiRefNet, and SAM with support for multiple input formats and GPU acceleration
Agent Success
Agent success rate when using this tile
84%
Improvement
Agent success rate improvement when using this tile compared to baseline
0.94x
Baseline
Agent success rate without this tile
89%
A Python CLI tool that processes multiple images from a directory, removes their backgrounds, and saves the results to an output directory.
The tool should accept two command-line arguments:
The tool must:
@generates
def process_batch(input_dir: str, output_dir: str) -> None:
"""
Process all images in input_dir by removing backgrounds and saving to output_dir.
Args:
input_dir: Path to directory containing input images
output_dir: Path to directory where processed images will be saved
"""
pass
if __name__ == "__main__":
# CLI entry point that accepts input_dir and output_dir as arguments
passProvides background removal capabilities for images.