# Add/confirm these on top of your existing requirements.txt # ViTMatte ships inside recent `transformers` — just make sure the # version is new enough to include VitMatteForImageMatting. transformers>=4.40.0 torch torchvision opencv-contrib-python # needed for cv2.ximgproc.guidedFilter (contrib build, not plain opencv-python) mediapipe==0.10.14 gradio pillow numpy # Required by BiRefNet's remote modeling code (trust_remote_code=True). # Without these, model loading fails with: # ImportError: This modeling file requires ... einops, kornia, timm einops kornia timm