mirror of
https://github.com/wassname/TTS.git
synced 2026-10-30 13:00:27 +08:00
fix linter problems and loader test
This commit is contained in:
1 parent
2a78725b68
commit
0e35fdc2a1
3 files changed
+3
-8
No files matched your search
@@ -137,9 +137,7 @@ class TestTTSDataset(unittest.TestCase):
|
||||
# NOTE: Below needs to check == 0 but due to an unknown reason
|
||||
# there is a slight difference between two matrices.
|
||||
# TODO: Check this assert cond more in detail.
|
||||
assert abs((abs(mel.T)
|
||||
- abs(mel_dl)
|
||||
).sum()) < 1e-5, (abs(mel.T) - abs(mel_dl)).sum()
|
||||
assert abs(mel.T - mel_dl).max() < 1e-5, abs(mel.T - mel_dl).max()
|
||||
|
||||
# check mel-spec correctness
|
||||
mel_spec = mel_input[0].cpu().numpy()
|
||||
|
||||
Reference in new issue
Block a user