Skip to content
This repository has been archived by the owner on Oct 9, 2023. It is now read-only.

Commit

Permalink
Merge branch 'master' into bugfix/default_uncollate
Browse files Browse the repository at this point in the history
  • Loading branch information
ethanwharris authored Dec 15, 2021
2 parents 6aa2267 + 7bcf4f1 commit 48bdfe1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions flash/audio/speech_recognition/collate.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@
from flash.core.utilities.imports import _AUDIO_AVAILABLE

if _AUDIO_AVAILABLE:
from transformers import Wav2Vec2Processor
from transformers import AutoProcessor
else:
Wav2Vec2Processor = object
AutoProcessor = object


@dataclass
Expand Down Expand Up @@ -52,7 +52,7 @@ class DataCollatorCTCWithPadding:
7.5 (Volta).
"""

processor: Wav2Vec2Processor
processor: AutoProcessor
padding: Union[bool, str] = True
max_length: Optional[int] = None
max_length_labels: Optional[int] = None
Expand Down

0 comments on commit 48bdfe1

Please sign in to comment.