Skip to content

Commit

Permalink
Merge pull request espnet#4378 from akreal/fix-check_short_utt
Browse files Browse the repository at this point in the history
Fix minimum input length for Conv2dSubsampling2 in check_short_utt
  • Loading branch information
sw005320 authored May 19, 2022
2 parents 9396ed3 + bfe7bca commit 047d0c4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions espnet/nets/pytorch_backend/transformer/subsampling.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ def __init__(self, message, actual_size, limit):

def check_short_utt(ins, size):
"""Check if the utterance is too short for subsampling."""
if isinstance(ins, Conv2dSubsampling2) and size < 3:
return True, 3
if isinstance(ins, Conv2dSubsampling2) and size < 7:
return True, 7
if isinstance(ins, Conv2dSubsampling) and size < 7:
return True, 7
if isinstance(ins, Conv2dSubsampling6) and size < 11:
Expand Down

0 comments on commit 047d0c4

Please sign in to comment.