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 tool that removes backgrounds from images and provides options to control the quality and smoothness of the resulting masks.
Process an image to remove its background using standard parameters.
Process an image with enhanced mask quality for smoother, more natural edges.
Process the same image twice to demonstrate the quality difference between standard and smoothed mask outputs.
@generates
def remove_background(input_path: str, output_path: str, smooth_mask: bool = False) -> None:
"""
Removes the background from an image and saves the result.
Args:
input_path: Path to the input image file
output_path: Path where the output PNG image should be saved
smooth_mask: If True, applies mask smoothing for higher quality edges
"""
pass
def compare_removal_quality(input_path: str, output_standard: str, output_smoothed: str) -> None:
"""
Processes an image with both standard and smoothed mask settings for comparison.
Args:
input_path: Path to the input image file
output_standard: Path where the standard removal result should be saved
output_smoothed: Path where the smoothed removal result should be saved
"""
passProvides background removal capabilities with options for mask quality control.
@satisfied-by