Skip to content

Commit 4f866c4

Browse files
committed
format
1 parent 533472f commit 4f866c4

File tree

9 files changed

+114
-556
lines changed

9 files changed

+114
-556
lines changed

amt/audio.py

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -194,12 +194,12 @@ def __init__(
194194
noise_ratio: float = 0.95,
195195
reverb_ratio: float = 0.95,
196196
applause_ratio: float = 0.01,
197-
bandpass_ratio: float = 0.15,
197+
bandpass_ratio: float = 0.15,
198198
distort_ratio: float = 0.15,
199199
reduce_ratio: float = 0.01,
200-
detune_ratio: float = 0.1,
201-
detune_max_shift: float = 0.15,
202-
spec_aug_ratio: float = 0.5,
200+
detune_ratio: float = 0.1,
201+
detune_max_shift: float = 0.15,
202+
spec_aug_ratio: float = 0.5,
203203
):
204204
super().__init__()
205205
self.tokenizer = AmtTokenizer()
@@ -269,18 +269,18 @@ def __init__(
269269
time_mask_param=1000, iid_masks=True
270270
),
271271
)
272-
272+
273273
def get_params(self):
274274
return {
275-
"noise_ratio": self.noise_ratio,
276-
"reverb_ratio": self.reverb_ratio,
277-
"applause_ratio": self.applause_ratio,
278-
"bandpass_ratio": self.bandpass_ratio,
279-
"distort_ratio": self.distort_ratio,
280-
"reduce_ratio": self.reduce_ratio,
281-
"detune_ratio": self.detune_ratio,
282-
"detune_max_shift": self.detune_max_shift,
283-
"spec_aug_ratio": self.spec_aug_ratio,
275+
"noise_ratio": self.noise_ratio,
276+
"reverb_ratio": self.reverb_ratio,
277+
"applause_ratio": self.applause_ratio,
278+
"bandpass_ratio": self.bandpass_ratio,
279+
"distort_ratio": self.distort_ratio,
280+
"reduce_ratio": self.reduce_ratio,
281+
"detune_ratio": self.detune_ratio,
282+
"detune_max_shift": self.detune_max_shift,
283+
"spec_aug_ratio": self.spec_aug_ratio,
284284
}
285285

286286
def _get_paths(self, dir_path):

amt/data.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818

1919
# Occasionally the worker util goes to 0 for some reason, debug this
2020

21+
2122
def get_wav_mid_segments(
2223
audio_path: str,
2324
mid_path: str = "",

0 commit comments

Comments
 (0)