@@ -205,6 +205,49 @@ uv run sam-pipeline-youtube-random \
205205 --total 1000 --verify-only
206206```
207207
208+ ### M2D dialogue/background validation
209+
210+ The technical YouTube gate does not prove that spoken dialogue and background
211+ activity occur in the selected ten seconds. Validate candidates with the
212+ official M2D AudioSet-fine-tuned tagger before using them. The validator scores
213+ overlapping two-second windows and requires speech, a non-human background
214+ class, and at least three windows in which both are active. Singing, choir,
215+ chant, rapping, humming, opera, a capella, vocal music, and song evidence may
216+ appear in at most one window, preventing sung vocals from satisfying the speech
217+ requirement. It separately records music-led, effects/ambience-led, and mixed
218+ instrumental backgrounds.
219+
220+ The model repository, checkpoint, AudioSet label CSV, and ontology are runtime
221+ inputs rather than files baked into this repository or its Docker image:
222+
223+ ``` bash
224+ uv run sam-pipeline-m2d-validate score \
225+ --input-dir /data/youtube-random-1000/audio \
226+ --output /data/youtube-random-1000/m2d-validation.jsonl \
227+ --m2d-repo /models/m2d \
228+ --checkpoint /models/m2d/weights_ep69it3124-0.47929.pth \
229+ --class-labels /models/audioset/class_labels_indices.csv \
230+ --ontology /models/audioset/ontology.json \
231+ --m2d-commit 3d0c4de9447c404a8d3f9f37e04f53bc902e09b3
232+ ```
233+
234+ Create a separate listening-test folder containing only accepted audio. The
235+ command hard-links files when possible and never removes the source dataset:
236+
237+ ``` bash
238+ uv run sam-pipeline-m2d-validate materialize \
239+ --input-dir ~ /Downloads/youtube-random-1000-20260714/audio \
240+ --results ~ /Downloads/m2d-validation.jsonl \
241+ --source-manifest ~ /Downloads/youtube-random-1000-20260714/manifest.json \
242+ --output-dir ~ /Downloads/youtube-dialogue-background-m2d-ok-20260714
243+ ```
244+
245+ The output includes ` manifest.json ` , ` audit.json ` , the complete M2D JSONL, and
246+ the accepted WAVs under ` audio/ ` . ` balanced-audio/ ` is a deterministic listening
247+ subset with equal music-led and non-music-led counts. Every record keeps the
248+ per-window scores, ranks, top labels, temporal coverage, rejection reasons,
249+ exact M2D checkpoint hash, and validator policy version.
250+
208251## AudioSet validation batches
209252
210253Acquire a reproducible random sample from the official AudioSet segment CSVs.
0 commit comments