Repository navigation
fix: remove padded frames from loss calculation - #166
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #166 +/- ##
==========================================
+ Coverage 47.92% 49.89% +1.96%
==========================================
Files 25 25
Lines 1980 1980
Branches 229 229
==========================================
+ Hits 949 988 +39
+ Misses 996 950 -46
- Partials 35 42 +7 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
|
Nothing jumps out at me as problematic. I understand neither Do these changes invalidate old models at all, or just improve training by calculating loss better? Oh, but once again you reached for |
| self.assertAlmostEqual( | ||
| losses_before[key].item(), losses_after[key].item(), places=4 | ||
| ) |
There was a problem hiding this comment.
use
assert losses_before[key].item() == pytest.approx(loses_after[key].item())
places=4 is replaced by either rel= or abs= depending on what makes sense.
See https://docs.pytest.org/en/stable/reference/reference.html#pytest-approx
8115c39 to
e392e22
Compare
joanise
left a comment
There was a problem hiding this comment.
Looks good, thanks for convert the unit tests.
uses masked select instead of *
e392e22 to
1b7dfea
Compare
EveryVoiceTTS/EveryVoice#887