flask rembg # CPU-only onnxruntime made background removal the slowest stage by far -- # onnxruntime-gpu lets rembg run BiRefNet on CUDA instead (auto-detected). # The two packages share the same import name and conflict; don't install both. onnxruntime-gpu opencv-contrib-python numpy Pillow torch torchvision kornia git+https://github.com/cvg/LightGlue.git