Ctrl + K
DocumentationLog inGet started

tessl/pypi-rembg

tessl install tessl/pypi-rembg@2.0.0

Remove 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%

task.mdevals/scenario-5/

Image Background Remover with Mask Quality Options

A tool that removes backgrounds from images and provides options to control the quality and smoothness of the resulting masks.

Capabilities

Background removal with default settings

Process an image to remove its background using standard parameters.

  • Given a JPEG image file path, the tool removes the background and returns a PNG image with transparency @test

Background removal with mask smoothing

Process an image with enhanced mask quality for smoother, more natural edges.

  • Given a JPEG image file path with mask smoothing enabled, the tool removes the background with refined edges, producing a higher-quality transparent PNG @test

Compare results with and without smoothing

Process the same image twice to demonstrate the quality difference between standard and smoothed mask outputs.

  • Given a JPEG image file path, the tool processes it both with and without mask smoothing, saving both results to allow quality comparison @test

Implementation

@generates

API

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
    """
    pass

Dependencies { .dependencies }

rembg { .dependency }

Provides background removal capabilities with options for mask quality control.

@satisfied-by

Version

Workspace
tessl
Visibility
Public
Created
Last updated
Describes
pypipkg:pypi/rembg@2.0.x
tile.json