Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
chenpangpang
transformers
Commits
b67f345d
Unverified
Commit
b67f345d
authored
Jan 06, 2022
by
flozi00
Committed by
GitHub
Jan 06, 2022
Browse files
Update run_speech_recognition_seq2seq.py (#14967)
parent
f71fb5c3
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
examples/pytorch/speech-recognition/run_speech_recognition_seq2seq.py
...orch/speech-recognition/run_speech_recognition_seq2seq.py
+1
-1
No files found.
examples/pytorch/speech-recognition/run_speech_recognition_seq2seq.py
View file @
b67f345d
...
@@ -359,7 +359,7 @@ def main():
...
@@ -359,7 +359,7 @@ def main():
raw_datasets
[
"train"
]
=
raw_datasets
[
"train"
].
select
(
range
(
data_args
.
max_train_samples
))
raw_datasets
[
"train"
]
=
raw_datasets
[
"train"
].
select
(
range
(
data_args
.
max_train_samples
))
if
data_args
.
max_eval_samples
is
not
None
:
if
data_args
.
max_eval_samples
is
not
None
:
raw_datasets
[
"eval"
]
=
raw_datasets
[
"eval"
].
select
(
range
(
data_args
.
max_
train
_samples
))
raw_datasets
[
"eval"
]
=
raw_datasets
[
"eval"
].
select
(
range
(
data_args
.
max_
eval
_samples
))
def
prepare_dataset
(
batch
):
def
prepare_dataset
(
batch
):
# process audio
# process audio
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment