Skip to content

fix the issue during batched inference of Sortformer diarizer#12047

Merged
tango4j merged 7 commits intomainfrom
fix/sortformer_batch_len
Feb 11, 2025
Merged

fix the issue during batched inference of Sortformer diarizer#12047
tango4j merged 7 commits intomainfrom
fix/sortformer_batch_len

Conversation

@tango4j
Copy link
Collaborator

@tango4j tango4j commented Feb 4, 2025

What does this PR do ?

This PR fixes the ghost timestamps issue occurs during batched inference of Sortformer model.

Collection:

ASR

Changelog

The following files are changed:
nemo/collections/asr/data/audio_to_diar_label_lhotse.py
nemo/collections/asr/models/sortformer_diar_models.py
nemo/collections/asr/modules/sortformer_modules.py

Usage

  • You can potentially add a usage example below
python $BASEPATH/neural_diarizer/e2e_diarize_speech.py \
    model_path=/path/to/diar_sortformer_4spk_v1.nemo \
    batch_size=1 \
    dataset_manifest=/path/to/diarization_manifest.json

GitHub Actions CI

Run CICD

Before your PR is "Ready for review"

Pre checks:

  • Make sure you read and followed Contributor guidelines
  • Did you write any new necessary tests?
  • Did you add or update any necessary documentation?
  • Does the PR affect components that are optional to install? (Ex: Numba, Pynini, Apex etc)
    • Reviewer: Does the PR have correct import guards for all optional libraries?

PR Type:

  • New Feature
  • Bugfix
  • Documentation

If you haven't finished some of the above items you can still open "Draft" PR.

Who can review?

Anyone in NeMo ASR

Additional Information

Sortformer Train/Inference

Signed-off-by: Taejin Park <tango4j@gmail.com>
@tango4j tango4j requested a review from ipmedenn February 4, 2025 17:52
@github-actions github-actions bot added the ASR label Feb 4, 2025
@tango4j tango4j requested a review from weiqingw4ng February 4, 2025 17:52
Copy link
Collaborator

@ipmedenn ipmedenn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@tango4j tango4j enabled auto-merge (squash) February 4, 2025 22:08
@tango4j tango4j added Run CICD and removed Run CICD labels Feb 4, 2025
@tango4j tango4j added Run CICD and removed Run CICD labels Feb 4, 2025
@codecov-commenter
Copy link

codecov-commenter commented Feb 5, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 30.43%. Comparing base (d56dcd9) to head (68080eb).
Report is 4 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main   #12047   +/-   ##
=======================================
  Coverage   30.43%   30.43%           
=======================================
  Files        1400     1401    +1     
  Lines      177498   177572   +74     
  Branches    27203    27213   +10     
=======================================
+ Hits        54016    54041   +25     
- Misses     119358   119406   +48     
- Partials     4124     4125    +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@tango4j tango4j added Run CICD and removed Run CICD labels Feb 6, 2025
@tango4j tango4j added Run CICD and removed Run CICD labels Feb 7, 2025
@tango4j tango4j disabled auto-merge February 8, 2025 01:03
@github-actions
Copy link
Contributor

github-actions bot commented Feb 8, 2025

[🤖]: Hi @tango4j 👋,

We wanted to let you know that a CICD pipeline for this PR just finished successfully

So it might be time to merge this PR or get some approvals

I'm just a bot so I'll leave it you what to do next.

//cc @pablo-garay @ko3n1g

@tango4j tango4j merged commit 7bb74fa into main Feb 11, 2025
223 of 224 checks passed
@tango4j tango4j deleted the fix/sortformer_batch_len branch February 11, 2025 10:04
tomlifu pushed a commit to tomlifu/NeMo that referenced this pull request Feb 20, 2025
…-NeMo#12047)

* Added changes that fix the issue during batched inference

Signed-off-by: Taejin Park <tango4j@gmail.com>

* Adding changes to prevent ghost output

Signed-off-by: Taejin Park <tango4j@gmail.com>

---------

Signed-off-by: Taejin Park <tango4j@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants