-
Notifications
You must be signed in to change notification settings - Fork 302
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
Add zipformer recipe for audio tagging #1421
Conversation
You can use the pretrained model to predict the audio events of an audio clip through the following command: python zipformer/pretrained.py \
--checkpoint zipformer/exp_at_as_full/pretrained.pt \
--label-dict downloads/audioset/class_labels_indices.csv \
downloads/audioset/eval/wav/__p-iA312kg_70.000_80.000.wav You should see the following output:
|
The pretrained model can be found here: https://huggingface.co/marcoyang/icefall-audio-tagging-audioset-zipformer-2024-03-12#/ |
Since there is no official way of downloading AudioSet now, this recipe assumes that you have your own version of AudioSet. The required structure of the dataset will be given in |
Added |
…g, but the results might be affected by the padding
@csukuangfj Can we merge this now? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! Just left a minor comment.
This PR adds a recipe for audio tagging using Zipformer. We use AudioSet as the training set.
Without using knowledge distillation, the Zipformer-M model achieves mAP value of 45.1. Using knowledge distillation could further improve the results (will add support for this in another PR)