# Lessons from building a video captioning + de-identification pipeline with Qwen, Gemini, SAM 3.1, and CVAT

> Source: <https://discuss.huggingface.co/t/lessons-from-building-a-video-captioning-de-identification-pipeline-with-qwen-gemini-sam-3-1-and-cvat/192718#post_1>
> Published: 2026-11-27 08:32:57+00:00

**Recommendation:** Route review to a separate model from the one that generated the output, and reject schema-invalid responses rather than repairing them so failures stay diagnosable.
More in the playbook "Evals and testing for LLM apps": <https://wpnews.pro/playbooks/evals-testing>

We wrote up how we built a video captioning + de-identification pipeline for training data, and what broke along the way.

Setup: Qwen 3.6 35B A3B generates Korean captions, Gemini 3.5 Flash reviews them, SAM 3.1 tracks masks for de-identification, and two different people review every item in a CVAT-based UI before anything is exported.

A few things we learned:

- Giving one model several “reviewer roles” is not independent review. With Qwen 3.5 9B doing both generation and review, a bounding box at IoU 0.36 got full marks from both roles. We moved review to a different model.
- A 0.8B model failed the JSON schema on every review attempt. We reject malformed responses instead of repairing them, which made failures much easier to diagnose.
- Models were not the bottleneck. In a 73.7 s end-to-end run, generation took 3.4 s and review 11.6 s. About 80% went to registering data in the annotation tool.
- We keep timecodes out of the model output. A VLM only sees sampled frames, so the program and humans own the timing.

Caveat: most numbers come from small synthetic test sets. They show the process works, not model quality or throughput.

Full write-up with workflow diagrams, failure cases, and system architecture:
