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 utility for managing rembg AI model downloads with validation and status reporting. This tool should leverage rembg's model management capabilities to handle downloading and checking model availability.
Build a tool that downloads specific rembg models and validates they are properly stored.
Build functionality to check which models are already downloaded locally.
Build functionality to verify if specific models are available locally before processing.
@generates
def download_models(model_names: list[str]) -> bool:
"""
Download specified rembg models.
Args:
model_names: List of model names to download (e.g., ['u2net', 'birefnet_portrait'])
Returns:
True if all models downloaded successfully, False otherwise
"""
pass
def list_downloaded_models() -> list[str]:
"""
Get a list of all models currently downloaded locally.
Returns:
List of downloaded model names
"""
pass
def is_model_downloaded(model_name: str) -> bool:
"""
Check if a specific model is downloaded locally.
Args:
model_name: Name of the model to check
Returns:
True if the model is downloaded, False otherwise
"""
passProvides background removal and model management capabilities.