Repository navigation
Echo-TTS: Sway time scheduling - #1105
Conversation
… schedule Adds in plumbing for Sway scheduling as well. Validated: the switch to FlowSamplerScheduleStep produces bit-identical output to main.
Validated: with t_schedule_mode=linear, still produces bit-identical output to main
Documentation for sway time scheduling added, including quality and RTF measurements. Also add missed joint-cfg lines to /docs/models/echo_tts.md
|
@lojack5 Thanks! PR merged. Moving timestep scheduling into the shared framework so Irodori-TTS and Echo-TTS can reuse it is a good choice. A follow-up PR could address the minor documentation accuracy. |
|
@0xShug0 Did a quick look through - I see one mistake in the table in the doc and a few typos. Are there other specific things you'd like me to correct for this? I haven't really looked at much of the documentation so I'm not sure other places that would reference things that changed. |
|
@lojack5 Two minor issues:
Performance table: 16.68 / 6.04 ≈ 2.76×, not 2.29×. The joint/sway row’s 2.26 / 3.02 ≈ 0.75 RTF but reported 1.41. |
|
Got it, and I'll do a pass to see if I notice anything else as well. |
Saw the idea originally in upstream Irodori-TTS, but since that time it was added to audio.cpp's Irodori-TTS implementation, so this ended up being quite easy to implement.
Changes
t_schedule_modeandsway_coeffrequest options to Echo-TTS (mirroring the naming used by Irodori-TTS)num_inference_stepsfort_schedule_mode=swayto 12.sway_coeffandt_schedule_modeso older embedded model specs work with the new options.Verifications
t_schedule_mode=linearproduces bit-identical output tot_schedule_mode=linearandnum_inference_steps=40(validating correct default selection for steps)t_schedule_mode=swayproduces bit-identical output tot_schedule_mode=swayandnum_inference_steps=12(validating correct default selection for steps)t_schedule_modeoptions give an HTTP 400 with proper error message.sway_coeffvalues (such as 1.0) which produce invalid timestep schedules give an HTTP 400 with proper error message.Default selection
docs/community_models/echo_tts_performance.md.From these tests and analysis, 12-steps for sway scheduling looks to be a good default.
Effect on RTF
Fundamentally, this is just a comparison of 12-step inference to 40-step inference, but the point is 12-step sway can get similar quality to 40-step linear. This table is also in the docs:
So about a 2.3-2.7 times speedup overall.