Repository navigation
[TTS] Add tests of the MagpieTTS inference CLI - #15272
Merged
Merged
Conversation
rfejgin
marked this pull request as ready for review
January 8, 2026 03:10
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
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>
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
force-pushed
the
magpietts_test_cli
branch
from
January 13, 2026 02:02
a3199aa to
c7bb698
Compare
rfejgin
marked this pull request as ready for review
January 13, 2026 02:03
blisc
approved these changes
Jan 13, 2026
blisc
enabled auto-merge (squash)
January 13, 2026 14:08
This branch was previously deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Changelog:
Add tests focusing on exercising MagpieTTS inference CLI options. PyTest-based.
New file:
tests/collections/tts/test_magpietts_inference_cli.pyThis 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
an4validation set, containing only 4 records. We refer to it fromevalset_config.jsonby the namean4_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:
--disable_fcdoption doesn't crash and producesNaNfor thefrechet_codec_distancemetric--disable_utmosv2option and theutmosv2metric.The two tests are combined into one test function by utilizing PyTest's
@parametrizefunctionality.Collection: TTS
PR Type: