-
Notifications
You must be signed in to change notification settings - Fork 2
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
Adding checkpoint and config version #565
Conversation
Changed Files
|
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #565 +/- ##
=======================================
Coverage 76.28% 76.28%
=======================================
Files 46 46
Lines 3450 3450
Branches 472 472
=======================================
Hits 2632 2632
Misses 713 713
Partials 105 105 ☔ View full report in Codecov by Sentry. |
f82705b
to
379cfd0
Compare
Darn, this is going to require a schema update, which normally means a minor version bump. @roedoejet are the schemas published yet? If so, we'll need a minor bump to 0.2.0a0 instead of continuing with 0.1.0a4. Or maybe 0.2.0a4 to continue with our milestone naming? That's definitely not typical progression, but hey! sometimes we're stuck with stuff like that. |
Version bump or not, I still think this is the right thing to do. |
379cfd0
to
5256255
Compare
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.
looks good to me! just a couple small things about the error messages
everyvoice/tests/test_model.py
Outdated
self.assertEqual(m["model_info"]["version"], BAD_VERSION) | ||
with self.assertRaisesRegex( | ||
ValueError, | ||
r"Your model was created with a newer version of EveryVoice, please update your software.", |
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.
I'm surprised that "BAD_VERSION" causes an error message that says "your model was created with a newer version of EveryVoice" - isn't "BAD_VERSION" just an unknown version? I would rather see messaging that indicates whether the provided version is newer/older or unknown.
right - yea if we release this as 0.1.0a4 then the schema will be broken, but I don't think it's that big of a deal actually. In the case where people don't change their configs to accommodate the new version key, the schema checker won't care, and if they create a new config with the version number, it'll just underline that value (if they have the yaml extension installed) but otherwise it shouldn't cause any problems. And, if they see the underline and remove the version number, it won't actually matter since we handle it right now with this PR anyways. Mind you, maybe we should get in the practise of bumping the schemas like this, in which case I think we should go to |
5256255
to
229b574
Compare
b715753
to
ea4d44c
Compare
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.
Hum, I added logging in each check_and_upgrade_checkpoint()
function just to see what's going on, and I get my expected logging line from everyvoice.model.feature_prediction.FastSpeech2_lightning.fs2.model:check_and_upgrade_checkpoint:260
but I can't get the Vocoder loading to seem to call its own check_and_upgrade_checkpoint
function.
I don't know if I'm doing something wrong, or if there's yet another model variant that needs the same code change. We can rubber duck when you are available.
I tried with a Vocoder I trained myself, and with I'm testing with
|
ea4d44c
to
6ec464b
Compare
6ec464b
to
42c7693
Compare
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.
Looks good, thanks for your patience with all the change requests!
767ff94
to
1cc510d
Compare
PR Goal?
Add a version number in a saved model's checkpoint and a version to EveryVoice's config files.
Fixes?
#559
Feedback sought?
Merge approval
Priority?
high
Tests added?
yes
How to test?
Confidence?
good
Version change?
yes for the schemas
Related PRs?
EveryVoiceTTS/FastSpeech2_lightning#92
EveryVoiceTTS/HiFiGAN_iSTFT_lightning#38
EveryVoiceTTS/DeepForcedAligner#28