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
c82e8bd2
Commit
c82e8bd2
authored
2 years ago
by
Marcin Wątroba
Browse files
Options
Downloads
Patches
Plain Diff
download_dataset command
parent
7cde44f5
Branches
Branches containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
new_datasets/add_asr_to_queue.py
+3
-2
3 additions, 2 deletions
new_datasets/add_asr_to_queue.py
with
3 additions
and
2 deletions
new_datasets/add_asr_to_queue.py
+
3
−
2
View file @
c82e8bd2
...
...
@@ -6,6 +6,8 @@ import pika
from
minio
import
Minio
from
pika.adapters.blocking_connection
import
BlockingChannel
from
new_experiment.new_dependency_provider
import
get_experiment_repository
def
get_all_datasets
()
->
List
[
str
]:
# return [it.object_name[:-1] for it in get_minio_client().list_objects('dataset-audio', '')]
...
...
@@ -14,8 +16,7 @@ def get_all_datasets() -> List[str]:
def
get_dataset_items_id
(
dataset_name
:
str
)
->
List
[
str
]:
return
[
it
.
object_name
.
split
(
'
/
'
)[
-
1
].
split
(
'
.
'
)[
0
]
for
it
in
get_minio_client
().
list_objects
(
'
dataset-audio
'
,
f
'
{
dataset_name
}
/
'
)]
return
list
(
get_experiment_repository
(
dataset_name
).
get_all_record_ids
())
def
get_minio_client
()
->
Minio
:
...
...
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