Repository navigation
Conversation
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.
Summary
Adds optional Sway timestep scheduling to Irodori-TTS, following the original Python implementation. The existing Euler solver is retained.
The options use the existing --request-option interface in audiocpp_cli and the options object in audiocpp_server.
CLI example:
--request-option t_schedule_mode=sway
--request-option sway_coeff=-1.0
--request-option num_inference_steps=10
Server request options:
{
"options": {
"t_schedule_mode": "sway",
"sway_coeff": -1.0,
"num_inference_steps": 10
}
}
Validation
Build configuration:
cmake -S . -B build
-DENGINE_ENABLE_HIP=ON
-DGPU_TARGETS=gfx1101
-DENGINE_BUILD_TESTS=ON
-DAUDIOCPP_MODEL_SET=full
-DAUDIOCPP_BUILD_NATIVE_MODEL_MANAGER=ON
-DCMAKE_BUILD_TYPE=Release
CTest completed successfully:
ctest --output-on-failure
100% tests passed, 0 tests failed out of 76
Manual runtime testing on HIP / AMD Radeon RX 7800 XT:
The timestep schedule was also compared numerically with the upstream PyTorch formula. For 10 steps and sway_coeff=-1.0, all timestep values matched in the CPU comparison.
Limitations
This adds sampling control; it does not guarantee unchanged audio quality when reducing the number of steps. End-to-end audio parity with the original Python implementation has not been established.