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%
{
"context": "This evaluation assesses the engineer's ability to use the rembg package for background removal, focusing on proper usage of the remove() function, correct file handling, and appropriate error handling patterns.",
"type": "weighted_checklist",
"checklist": [
{
"name": "Uses remove() function",
"description": "Implementation correctly imports and uses the rembg.remove() function to perform background removal",
"max_score": 30
},
{
"name": "File I/O handling",
"description": "Correctly reads input image file and writes output image file using appropriate methods (e.g., PIL Image.open() and save(), or reading/writing bytes)",
"max_score": 25
},
{
"name": "Command-line argument parsing",
"description": "Properly parses command-line arguments to extract input and output file paths (e.g., using sys.argv or argparse)",
"max_score": 15
},
{
"name": "Error handling",
"description": "Implements appropriate error handling for missing files or invalid paths, with proper exit codes and error messages",
"max_score": 15
},
{
"name": "Data format compatibility",
"description": "Ensures compatibility between file I/O format and remove() function input/output (bytes, PIL Image, or numpy array)",
"max_score": 15
}
]
}