-
Notifications
You must be signed in to change notification settings - Fork 567
Add audioset (WIP) #2331
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
isaac-chung
merged 2 commits into
embeddings-benchmark:add-audioset-2
from
anime-sh:audioSet
Jul 27, 2025
Merged
Add audioset (WIP) #2331
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,5 +1,6 @@ | ||
| from __future__ import annotations | ||
|
|
||
| from .eng.AudioSet import * | ||
| from .eng.BirdSet import * | ||
| from .eng.FSD50HF import * | ||
| from .eng.FSD2019Kaggle import * |
45 changes: 45 additions & 0 deletions
45
mteb/tasks/Audio/AudioMultilabelClassification/eng/AudioSet.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,45 @@ | ||
| from __future__ import annotations | ||
|
|
||
| from mteb.abstasks.Audio.AbsTaskAudioMultilabelClassification import ( | ||
| AbsTaskAudioMultilabelClassification, | ||
| ) | ||
| from mteb.abstasks.TaskMetadata import TaskMetadata | ||
|
|
||
|
|
||
| class AudioSetMultilingualClassification(AbsTaskAudioMultilabelClassification): | ||
| metadata = TaskMetadata( | ||
| name="AudioSet", | ||
| description="Multilabel Audio Classification.", | ||
| reference="https://huggingface.co/datasets/agkphysics/AudioSet", | ||
| dataset={ | ||
| "path": "agkphysics/AudioSet", | ||
| "revision": "5a2fa42a1506470d275a47ff8e1fdac5b364e6ef", | ||
| }, # this is actually used to download the data | ||
isaac-chung marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| type="AudioMultilabelClassification", | ||
| category="a2t", | ||
| eval_splits=["test"], | ||
| eval_langs=["eng-Latn"], | ||
| main_score="accuracy", | ||
| date=( | ||
| "2020-01-01", | ||
| "2020-01-30", | ||
| ), # Estimated date when this dataset was committed, what should be the second tuple? | ||
isaac-chung marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| domains=["Web"], # obtained from Freesound - online collaborative platform | ||
isaac-chung marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| task_subtypes=[ | ||
| "Environment Sound Classification" | ||
| ], # Since this dataset has sounds of ALL types, this seems to be the best option | ||
isaac-chung marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| license="cc-by-4.0", | ||
| annotations_creators="human-annotated", | ||
| dialect=[], | ||
| modalities=["audio"], | ||
| sample_creation="found", | ||
| bibtex_citation="""@inproceedings{45857,title = {Audio Set: An ontology and human-labeled dataset for audio events},author = {Jort F. Gemmeke and Daniel P. W. Ellis and Dylan Freedman and Aren Jansen and Wade Lawrence and R. Channing Moore and Manoj Plakal and Marvin Ritter},year = {2017},booktitle = {Proc. IEEE ICASSP 2017},address = {New Orleans, LA}} | ||
| """, | ||
| descriptive_stats={ | ||
| "n_samples": {"test": 8961}, # Need to change | ||
| }, | ||
isaac-chung marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| ) | ||
|
|
||
| audio_column_name: str = "audio" | ||
| label_column_name: str = "labels" | ||
| samples_per_label: int = 8 # Need to change | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.