Skip to content

Add validate_chunk flag (reorganized and updated) - #1986

Open
lylyhan wants to merge 26 commits into
pyannote:mainfrom
lylyhan:pr-validatechunk
Open

Add validate_chunk flag (reorganized and updated)#1986
lylyhan wants to merge 26 commits into
pyannote:mainfrom
lylyhan:pr-validatechunk

Conversation

@lylyhan

@lylyhan lylyhan commented Feb 20, 2026

Copy link
Copy Markdown
Contributor

A new flag validate_chunk (input to SpeakerDiarization class, defaults to False) will determine if chunk is skipped when exceeding max_speakers_per_chunk
3 changes if validate_chunk=True :

  1. SpeakerDiarization.prepare_chunk can return None
  2. SegmentationTask.train__iter__helper will skip current chunk if exceeding max number of speakers
  3. SegmentationTask.prepare_validation will skip current chunk if exceeding max number of speakers. If none of the validation data satisfies criteria, it will return the full "unvalidated" validation set.

lylyhan and others added 26 commits February 20, 2026 11:13
…pare_validation, train_iter_helper accordingly
Cherry-pick all commits related to validate_chunk
…pare_validation, train_iter_helper accordingly
Co-authored-by: Hervé BREDIN <hbredin@users.noreply.github.com>
…pare_validation, train_iter_helper accordingly
Cherry-pick all commits related to validate_chunk
…pare_validation, train_iter_helper accordingly
Co-authored-by: Hervé BREDIN <hbredin@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant