mirror of
https://github.com/k2-fsa/icefall.git
synced 2025-08-26 10:16:14 +00:00
minor fixes
This commit is contained in:
parent
15f2f7190f
commit
28bd9330d7
@ -143,7 +143,7 @@ class CodecDataModule:
|
||||
group.add_argument(
|
||||
"--input-strategy",
|
||||
type=str,
|
||||
default="PrecomputedFeatures",
|
||||
default="AudioSamples",
|
||||
help="AudioSamples or PrecomputedFeatures",
|
||||
)
|
||||
|
||||
|
@ -300,13 +300,12 @@ class SpectrogramReconstructionLoss(torch.nn.Module):
|
||||
|
||||
def __init__(
|
||||
self,
|
||||
sampling_rate: int = 22050,
|
||||
return_spec: bool = False,
|
||||
):
|
||||
super().__init__()
|
||||
self.wav_to_specs = []
|
||||
for i in range(5, 10):
|
||||
s = 2**i // 8
|
||||
for i in range(5, 12):
|
||||
s = 2**i
|
||||
self.wav_to_specs.append(
|
||||
Spectrogram(
|
||||
n_fft=s,
|
||||
|
Loading…
x
Reference in New Issue
Block a user