Repository navigation
FS2 Loss included padded frames - #887
Merged
Merged
Conversation
Contributor
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #887 +/- ##
=======================================
Coverage 85.25% 85.25%
=======================================
Files 51 51
Lines 4789 4789
Branches 712 712
=======================================
Hits 4083 4083
Misses 534 534
Partials 172 172 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Member
|
Oops, you said here you added tests, but they're not there. Did you forget to commit them? |
roedoejet
force-pushed
the
dev.ap/fs2-loss
branch
from
September 16, 2026 18:03
1384722 to
f91ac5a
Compare
fix fs2 loss
roedoejet
force-pushed
the
dev.ap/fs2-loss
branch
from
October 15, 2026 15:56
f91ac5a to
3f62c98
Compare
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.
PR Goal?
Previously, the loss was calculated by multiplying against the mask, but this would still include the padded frames in MSE loss, unnecessarily. Here we switch to masked select instead to only calculate loss on non-padded inputs/outputs.
Fixes?
Issue raised by personal communication with @korin-richmond
Feedback sought?
sanity
Priority?
medium
Tests added?
yes
How to test?
I've included tests. you should be able to train a new model or finetune existing models without issues
Confidence?
high
Version change?
patch
Related PRs?
EveryVoiceTTS/FastSpeech2_lightning#166