Skip to content

[TTS] Add tests of the MagpieTTS inference CLI - #15272

Merged
blisc merged 12 commits into
NVIDIA-NeMo:mainfrom
rfejgin:magpietts_test_cli
Jan 13, 2026
Merged

blisc merged 12 commits into
NVIDIA-NeMo:mainfrom
rfejgin:magpietts_test_cli

Conversation

@rfejgin

@rfejgin rfejgin commented Jan 8, 2026 •

Copy link
Copy Markdown
Collaborator

Changelog:

Add tests focusing on exercising MagpieTTS inference CLI options. PyTest-based.

  • New file: tests/collections/tts/test_magpietts_inference_cli.py
    This is a PyTest file that we can use to test the inference CLI options. Doing these tests in PyTest (as opposed to shell scripts) should work better because the tests will be easier to write, maintain, parameterize, etc.

  • A new manifest was added in the CI storage area on Azure. It is a small version of the an4 validation set, containing only 4 records. We refer to it from evalset_config.json by the name an4_val_tiny_ci. This manifest is meant for use in tests that should run quickly and where we do not need metrics resulting from testing many items, e.g. for command line argument tests.

Two simple tests are included in this PR:

  • A test that verifies that the --disable_fcd option doesn't crash and produces NaN for the frechet_codec_distance metric
  • A test of the same for the --disable_utmosv2 option and the utmosv2 metric.

The two tests are combined into one test function by utilizing PyTest's @parametrize functionality.

Collection: TTS

PR Type:

  • New Feature
  • Tests
  • Bugfix
  • Documentation

@github-actions github-actions Bot added the TTS label Jan 8, 2026
@rfejgin
rfejgin requested a review from blisc January 8, 2026 03:10
@rfejgin
rfejgin marked this pull request as ready for review January 8, 2026 03:10
@rfejgin rfejgin changed the title [TTS] Add some tests for MagpieTTS inference CLI [TTS] Add tests of the MagpieTTS inference CLI Jan 8, 2026
@rfejgin
rfejgin marked this pull request as draft January 13, 2026 01:36
auto-merge was automatically disabled January 13, 2026 01:36

Pull request was converted to draft

@github-actions github-actions Bot removed core Changes to NeMo Core ASR labels Jan 13, 2026
New file: tests/collections/tts/test_magpietts_inference_cli.py

This is a PyTest file that we can use to test the inference CLI options. Doing this in
PyTest should work better than  shell scripts because the tests will be easier to write
and maintain, parameterize, assert on the outputs, etc.

In this commit, two tests are added:
- A test that verifies that the --disable_fcd option produces NaN for the
  frechet_codec_distance metric
- A test that verifies that the --disable_utmosv2 option produces NaN for the utmosv2
  metric

Signed-off-by: Fejgin, Roy <rfejgin@nvidia.com>
Signed-off-by: Fejgin, Roy <rfejgin@nvidia.com>
Signed-off-by: Fejgin, Roy <rfejgin@nvidia.com>
Signed-off-by: Fejgin, Roy <rfejgin@nvidia.com>
Combine multiple test cases into a single test function using PyTest's @parameterize decorator.

Signed-off-by: Fejgin, Roy <rfejgin@nvidia.com>
Signed-off-by: Fejgin, Roy <rfejgin@nvidia.com>
Signed-off-by: Fejgin, Roy <rfejgin@nvidia.com>
* Reduce number of repeats to 1 to limit test time
* Add a comment

Signed-off-by: Fejgin, Roy <rfejgin@nvidia.com>
Also, move test data paths (codec, checkpoint, etc.) from class-level to function-level since
we may want these to be different for each test (when we have multiple tests).

Signed-off-by: Fejgin, Roy <rfejgin@nvidia.com>
Signed-off-by: Fejgin, Roy <rfejgin@nvidia.com>
Now that evalset_config.json contains multiple dataset options,
we need to excplicitly choose the dataset we want to use in CI tests.

Signed-off-by: Fejgin, Roy <rfejgin@nvidia.com>
Signed-off-by: Fejgin, Roy <rfejgin@nvidia.com>
@rfejgin
rfejgin force-pushed the magpietts_test_cli branch from a3199aa to c7bb698 Compare January 13, 2026 02:02
@rfejgin
rfejgin marked this pull request as ready for review January 13, 2026 02:03
@rfejgin
rfejgin requested a review from blisc January 13, 2026 02:04
@blisc
blisc enabled auto-merge (squash) January 13, 2026 14:08
@blisc
blisc merged commit 5af38ec into NVIDIA-NeMo:main Jan 13, 2026
138 checks passed

This branch was previously deployed

1 inactive deployment
test — c7bb698e Deployed Jan 13, 2026 by chtruong814 via cicd-wait-in-queue #18567
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants