Repository navigation
Conversation
Use ConfigModel.from_checkpoint_dump() wherever a config is built from a checkpoint's hyperparameters, so that loading a checkpoint that contains the default save_dir values no longer creates those directories in the current directory. Done with the assistance of Claude Opus 5.5, human prompted, human reviewed.
StyleTTS2 checkpoints stored ev_config via model_dump(mode="json"), so all its paths were kept as str. Loading such a checkpoint on another machine validated them: missing directories, e.g., the trained save_dir, were created, and a missing path_to_*_config_file failed validation. Serialize ev_config with model_checkpoint_dump(), as FastSpeech2 and HiFiGAN do. StyleTTS2Config.model_checkpoint_dump() also removes the two paths not found by declared type: ood_raw_data sources with a local_path, which would be invalid without it (hf sources are kept), and the str first_stage_path.
write_text() without an encoding uses the locale code page on Windows (cp1252), so the "¡" in the default TextConfig was written as byte 0xa1, and loading the file as utf8 failed.
saving on exception was adding ckpt clutter we lose ctrl+c ckpts, but the SIGINT ckpts are already caught
also miscellaneous reloading fixes when re-building model from ckpt
add backwards compatibility
makes code DRYer
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.
EveryVoiceTTS/EveryVoice#928