-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore: update model due to incompatibility with new text processing #34
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
right concept, but requires some tweaks
@@ -127,6 +128,11 @@ def check_and_upgrade_checkpoint(self, checkpoint): | |||
# Upgrading from 0.0 to 1.0 requires no changes; future versions might require changes | |||
checkpoint["model_info"]["version"] = "1.0" | |||
|
|||
# We changed the handling of phonological features in everyvoice==0.3.0 | |||
if ckpt_version < Version("1.1"): | |||
raise ValueError(f"""There were breaking changes to the handling of text in version 1.1, introduced in version 0.3.0 of EveryVoice. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just "version 1.1" like this is confusing, because various things have versions in this message. Name it: "in dfagliner model version 1.1" or whatever strings accurately describes this.
# We changed the handling of phonological features in everyvoice==0.3.0 | ||
if ckpt_version < Version("1.1"): | ||
raise ValueError(f"""There were breaking changes to the handling of text in version 1.1, introduced in version 0.3.0 of EveryVoice. | ||
Your model is version {ckpt_version} and your model will not work as a result. Please downgrade to everyvoice 0.2.0.""") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
0.2.0 never existed. You mean 0.2.0a1. Unless we publish 0.2.0==0.2.0a1, trying pip install everyvoice==0.2.0
will fail. Currently, even pip install everyvoice
fails. And pip install everyvoice<0.3
will continue to fail, only with an explicit pip install everyvoice==0.2.0a1
will pip ever accept to install an alpha or beta version.
see EveryVoiceTTS/EveryVoice#627