mirror of
https://github.com/k2-fsa/icefall.git
synced 2025-08-26 10:16:14 +00:00
updated utils.py
Co-authored-by: Fangjun Kuang <csukuangfj@gmail.com>
This commit is contained in:
parent
eb239cb634
commit
edc4eb3372
@ -2287,7 +2287,7 @@ def time_warp(
|
|||||||
return features
|
return features
|
||||||
assert (
|
assert (
|
||||||
len(features.shape) == 3
|
len(features.shape) == 3
|
||||||
), "SpecAugment only supports batches of single-channel feature matrices."
|
), f"SpecAugment only supports batches of single-channel feature matrices. {features.shape}"
|
||||||
features = features.clone()
|
features = features.clone()
|
||||||
if supervision_segments is None:
|
if supervision_segments is None:
|
||||||
# No supervisions - apply spec augment to full feature matrices.
|
# No supervisions - apply spec augment to full feature matrices.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user