Skip to content

Merge the current origin/main into the API stack - #53

Open
joanise wants to merge 15 commits into
dev.ej/fs2-synth-apifrom
dev.ej/merge-main-into-api
Open

joanise wants to merge 15 commits into
dev.ej/fs2-synth-apifrom
dev.ej/merge-main-into-api

Conversation

@joanise

@joanise joanise commented Dec 1, 2026

Copy link
Copy Markdown
Member

joanise and others added 15 commits November 17, 2026 12:09
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants