Remove image background using advanced AI models including U-Net, BiRefNet, and SAM with support for multiple input formats and GPU acceleration
84
{
"context": "This criteria evaluates how well the engineer uses the rembg package for batch folder processing of images, focusing on efficient background removal, proper session management for batch operations, and appropriate handling of file I/O with the rembg API.",
"type": "weighted_checklist",
"checklist": [
{
"name": "Uses remove function",
"description": "Code uses the rembg.remove() function to perform background removal on images",
"max_score": 25
},
{
"name": "Session reuse",
"description": "Code uses new_session() to create a session and reuses it across multiple images for improved performance, rather than calling remove() without a session for each image",
"max_score": 30
},
{
"name": "Proper I/O format",
"description": "Code correctly handles rembg input/output formats by reading image files into appropriate format (bytes, PIL Image, or numpy array) and writing the output back to files",
"max_score": 25
},
{
"name": "Directory traversal",
"description": "Code properly traverses the input directory to find all image files, including handling subdirectories recursively",
"max_score": 10
},
{
"name": "Progress indication",
"description": "Code provides progress feedback during batch processing (e.g., using tqdm, print statements, or other progress indicators)",
"max_score": 10
}
]
}Install with Tessl CLI
npx tessl i tessl/pypi-rembgevals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
scenario-10