Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
asr-benchmarks
Manage
Activity
Members
Labels
Plan
Issues
8
Issue boards
Milestones
Wiki
Redmine
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Marcin Wątroba
asr-benchmarks
Commits
1936693a
Commit
1936693a
authored
2 years ago
by
Marcin Wątroba
Browse files
Options
Downloads
Patches
Plain Diff
download_dataset command
parent
aa7b7f1e
Branches
Branches containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
new_datasets/download_hf_dataset.py
+18
-0
18 additions, 0 deletions
new_datasets/download_hf_dataset.py
new_experiment/add_to_queue_pipeline.py
+15
-5
15 additions, 5 deletions
new_experiment/add_to_queue_pipeline.py
with
33 additions
and
5 deletions
new_datasets/download_hf_dataset.py
0 → 100644
+
18
−
0
View file @
1936693a
import
argparse
from
typing
import
Optional
import
datasets
def
download_dataset
(
dataset_path
:
str
,
dataset_name
:
Optional
[
str
],
cache_dir
:
str
):
dataset
=
datasets
.
load_dataset
(
dataset_path
,
dataset_name
,
cache_dir
=
cache_dir
)
print
(
dataset
)
if
__name__
==
'
__main__
'
:
parser
=
argparse
.
ArgumentParser
()
parser
.
add_argument
(
"
--dataset_path
"
)
parser
.
add_argument
(
"
--dataset_name
"
)
parser
.
add_argument
(
"
--cache_dir
"
)
args
=
parser
.
parse_args
()
download_dataset
(
args
.
dataset
,
args
.
asr
)
This diff is collapsed.
Click to expand it.
new_experiment/add_to_queue_pipeline.py
+
15
−
5
View file @
1936693a
...
...
@@ -9,14 +9,14 @@ from pika.adapters.blocking_connection import BlockingChannel
COMMANDS
=
[
'
run_word_wer_classic_pipeline
'
,
'
run_word_wer_embedding_pipeline
'
,
'
run_spacy_dep_tag_wer_pipeline
'
,
'
run_spacy_ner_wer_pipeline
'
,
'
run_spacy_pos_wer_pipeline
'
]
LANGUAGES
=
[
#
'nl', 'fr', 'de',
'
nl
'
,
'
fr
'
,
'
de
'
,
'
it
'
,
#
'pl', 'es', 'en'
'
pl
'
,
'
es
'
,
'
en
'
]
WHISPER_ASR_MODEL
=
[
'
tiny
'
,
'
base
'
,
'
small
'
,
'
medium
'
,
'
large-v2
'
]
DATASETS
=
[
#
'google_fleurs',
#
'minds14',
'
google_fleurs
'
,
'
minds14
'
,
'
voxpopuli
'
]
...
...
@@ -90,6 +90,16 @@ def add_facebook_hf_wav2vec2_pipeline(channel: BlockingChannel):
add_to_queue
(
dataset_name
,
asr_name
,
command
,
channel
,
'
asr_benchmark_experiments
'
)
def
add_nvidia
(
channel
:
BlockingChannel
):
languages
=
[
'
de
'
,
'
en
'
,
'
es
'
,
'
fr
'
,
'
it
'
]
for
language_code
in
languages
:
asr_name
=
f
'
nvidia_stt_
{
language_code
}
_conformer_transducer_large
'
for
datasets
in
DATASETS
:
dataset_name
=
f
'
{
language_code
}
_
{
datasets
}
'
for
command
in
COMMANDS
:
add_to_queue
(
dataset_name
,
asr_name
,
command
,
channel
,
'
asr_benchmark_experiments
'
)
def
main
():
parameters
=
pika
.
URLParameters
(
'
amqps://rabbit_user:kz6m4972OUHFmtUcPOHx4kF3Lj6yw7lo@rabbit-asr-benchmarks.theliver.pl:5671/
'
)
...
...
@@ -98,8 +108,8 @@ def main():
# add_whisper(channel)
# add_facebook_hf_wav2vec2_asr(channel)
# add_facebook_hf_wav2vec2_pipeline(channel)
add_nvidia
(
channel
)
connection
.
close
()
# ['de', 'en', 'es', 'fr', 'it']
if
__name__
==
'
__main__
'
:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment