Skip to content

Commit

Permalink
Fix minimum input length for Conv2dSubsampling2 in check_short_utt
Browse files Browse the repository at this point in the history
  • Loading branch information
akreal committed May 19, 2022
1 parent 9396ed3 commit bfe7bca
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 bfe7bca

Please sign in to comment.