mirror of
https://github.com/k2-fsa/icefall.git
synced 2025-08-27 02:34:21 +00:00
Preserve cut id in mix cut transformer.
This commit is contained in:
parent
0f3d9220d4
commit
b27d67d2fb
@ -162,7 +162,9 @@ class LibriSpeechAsrDataModule(DataModule):
|
|||||||
cuts_musan = load_manifest(self.args.feature_dir / "cuts_musan.json.gz")
|
cuts_musan = load_manifest(self.args.feature_dir / "cuts_musan.json.gz")
|
||||||
|
|
||||||
logging.info("About to create train dataset")
|
logging.info("About to create train dataset")
|
||||||
transforms = [CutMix(cuts=cuts_musan, prob=0.5, snr=(10, 20))]
|
transforms = [
|
||||||
|
CutMix(cuts=cuts_musan, prob=0.5, snr=(10, 20), preserve_id=True)
|
||||||
|
]
|
||||||
if self.args.concatenate_cuts:
|
if self.args.concatenate_cuts:
|
||||||
logging.info(
|
logging.info(
|
||||||
f"Using cut concatenation with duration factor "
|
f"Using cut concatenation with duration factor "
|
||||||
|
Loading…
x
Reference in New Issue
Block a user