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 criteria evaluates how well the engineer uses the rembg package to implement a command-line image background removal tool. The focus is on correct usage of rembg's remove() function and proper handling of image data formats supported by the package.",
"type": "weighted_checklist",
"checklist": [
{
"name": "Uses remove function",
"description": "The solution imports and calls the remove() function from the rembg package to process the image",
"max_score": 50
},
{
"name": "Correct input format",
"description": "The solution passes image data to rembg.remove() in one of the supported formats (bytes, PIL.Image object, or numpy array) rather than attempting to pass file paths directly",
"max_score": 25
},
{
"name": "Output handling",
"description": "The solution correctly handles the output from rembg.remove(), which returns the same type as the input (bytes, PIL.Image, or numpy array), and saves it appropriately to preserve the alpha channel",
"max_score": 25
}
]
}