Remove image backgrounds with rembg, producing transparent-PNG cutouts. Use this whenever the user wants to remove/erase/delete a background, cut out or isolate a subject, make a transparent PNG, extract a foreground object, or batch-process a folder of images into cutouts — including phrasings like "抠图", "去背景", "remove background", "cut out this object", "make this transparent", "isolate the product", or when they hit rembg errors (missing onnxruntime backend, CUDA/libcudart version mismatch, gradio proxy crash). It sets up an ISOLATED conda/venv environment (never touching existing envs), installs the correct GPU (CUDA 12) or CPU backend for the machine, prefetches models, and runs single-image or whole-folder background removal.
2026-07-07