Spaces:
Sleeping
Sleeping
Hugo Flores
commited on
Commit
·
d6a029b
1
Parent(s):
920f55c
fix transforms
Browse files- scripts/exp/train.py +2 -1
scripts/exp/train.py
CHANGED
@@ -59,7 +59,8 @@ IGNORE_INDEX = -100
|
|
59 |
@argbind.bind("train", "val", without_prefix=True)
|
60 |
def build_transform():
|
61 |
transform = transforms.Compose(
|
62 |
-
tfm.VolumeNorm(("
|
|
|
63 |
)
|
64 |
return transform
|
65 |
|
|
|
59 |
@argbind.bind("train", "val", without_prefix=True)
|
60 |
def build_transform():
|
61 |
transform = transforms.Compose(
|
62 |
+
tfm.VolumeNorm(("const", -24)),
|
63 |
+
tfm.RescaleAudio(),
|
64 |
)
|
65 |
return transform
|
66 |
|