Spaces:
Running
Running
update
Browse files
toolbox/torchaudio/models/nx_clean_unet/configuration_nx_clean_unet.py
CHANGED
@@ -8,6 +8,8 @@ class NXCleanUNetConfig(PretrainedConfig):
|
|
8 |
https://github.com/yxlu-0102/MP-SENet/blob/main/config.json
|
9 |
"""
|
10 |
def __init__(self,
|
|
|
|
|
11 |
n_fft: int = 512,
|
12 |
win_length: int = 200,
|
13 |
hop_length: int = 80,
|
@@ -38,6 +40,8 @@ class NXCleanUNetConfig(PretrainedConfig):
|
|
38 |
**kwargs
|
39 |
):
|
40 |
super(NXCleanUNetConfig, self).__init__(**kwargs)
|
|
|
|
|
41 |
self.n_fft = n_fft
|
42 |
self.win_length = win_length
|
43 |
self.hop_length = hop_length
|
|
|
8 |
https://github.com/yxlu-0102/MP-SENet/blob/main/config.json
|
9 |
"""
|
10 |
def __init__(self,
|
11 |
+
sample_rate: int = 8000,
|
12 |
+
segment_size: int = 16000,
|
13 |
n_fft: int = 512,
|
14 |
win_length: int = 200,
|
15 |
hop_length: int = 80,
|
|
|
40 |
**kwargs
|
41 |
):
|
42 |
super(NXCleanUNetConfig, self).__init__(**kwargs)
|
43 |
+
self.sample_rate = sample_rate
|
44 |
+
self.segment_size = segment_size
|
45 |
self.n_fft = n_fft
|
46 |
self.win_length = win_length
|
47 |
self.hop_length = hop_length
|