The client
A US-based company (name withheld under NDA) that needed to cleanly separate people from their backgrounds in high-resolution video.
The problem
Open-source segmentation models handle low-resolution clips reasonably well, but they struggle at 4K and 8K. Fine details like hair and motion blur break down, edges flicker from frame to frame, and the model loses track of who is who when several people are in the shot. For professional video, any of those problems makes the output unusable.
What we built
We combined recent state-of-the-art matting research, including mat-anyone 2, with our own segmentation and tracking, then tuned the pipeline for 4K/8K production footage.
- High-resolution segmentation and matting. Clean alpha mattes at 4K and 8K that keep fine detail around edges and hair.
- Consistent person tracking. CLIP-ReID-based tracking that keeps each person’s identity stable across frames, even when people overlap or leave and re-enter the shot.
- Production-ready. Trained efficiently with FSDP2 and served with vLLM in Docker containers, with workloads distributed across multiple GPUs and autoscaling to handle demand.
Results
Outperformed SAM3, the base mat-anyone 2 model and other open-source models on video segmentation and matting in our evaluations.
Stack: PyTorch, FSDP2, vLLM, Docker, CLIP-ReID, multi-GPU autoscaling infrastructure, Python, Redis, RabbitMQ
