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(
|
group.add_argument(
|
||||||
"--input-strategy",
|
"--input-strategy",
|
||||||
type=str,
|
type=str,
|
||||||
default="PrecomputedFeatures",
|
default="AudioSamples",
|
||||||
help="AudioSamples or PrecomputedFeatures",
|
help="AudioSamples or PrecomputedFeatures",
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -300,13 +300,12 @@ class SpectrogramReconstructionLoss(torch.nn.Module):
|
|||||||
|
|
||||||
def __init__(
|
def __init__(
|
||||||
self,
|
self,
|
||||||
sampling_rate: int = 22050,
|
|
||||||
return_spec: bool = False,
|
return_spec: bool = False,
|
||||||
):
|
):
|
||||||
super().__init__()
|
super().__init__()
|
||||||
self.wav_to_specs = []
|
self.wav_to_specs = []
|
||||||
for i in range(5, 10):
|
for i in range(5, 12):
|
||||||
s = 2**i // 8
|
s = 2**i
|
||||||
self.wav_to_specs.append(
|
self.wav_to_specs.append(
|
||||||
Spectrogram(
|
Spectrogram(
|
||||||
n_fft=s,
|
n_fft=s,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user