How do you validate a large video dataset before training?

I am comparing approaches for validating a large video dataset before training a video or vision-language model.

The checks I am considering include:

  • Metadata completeness
  • Duplicate and near-duplicate detection
  • Caption and transcript alignment
  • Creator or channel-level train/test splits
  • Language balance
  • Temporal distribution
  • Source provenance

For teams using PyTorch Datasets or DataLoaders, which checks have provided the most practical value before the first training run?

I am especially interested in checks that can be automated as part of dataset preparation rather than reviewed manually after training begins.

My order would be decode-ability first, then near-duplicates. Run every file once through the exact decoder and fps/resolution your DataLoader will use and log failures, because a corrupt clip that only crashes a worker on day two is the most expensive kind of bug. Then perceptual-hash a few sampled frames per clip and do creator-level splits on top of that, so re-uploads don’t leak between train and test and quietly inflate your eval. For caption alignment, a cheap CLIP-style similarity score between sampled frames and the caption, flagging the bottom few percent for manual review, catches most of the junk. (I’m with aicost.tools, just sharing what I’d automate.)

That ordering makes a lot of sense. Decodeability and near-duplicate checks should come before splitting, otherwise corrupted or repeated samples can distort both training and evaluation.

I would also keep a quarantine manifest for failed files instead of silently dropping them. Recording the source ID, failure reason, codec, duration, and resolution makes the cleanup process measurable.

For caption alignment, do you compare captions with sampled frames using CLIP, or do you also use ASR timestamps? I’m curious how you choose the threshold for manual review.