-
Notifications
You must be signed in to change notification settings - Fork 51
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
Inference on AudioSet #37
Comments
Hi, thank you! I think in order to get the best performance, it's better to retrain on 16khz. First get the models as usual:
Then replace the mel layer with this adapted config:
you can comapre it with original mel layer here: https://github.com/kkoutini/passt_hear21/blob/4dd6b9e426f528e2e8409b9bacecf58a2f464548/hear21passt/base.py#L52 The audio files I downloaded where in 32khz |
Thank you for the reply. from hear21passt.base import get_basic_model,get_model_passt Also I assume, these logits should be followed by application of sigmoid function to get the output classes? Please correct me if I am wrong. Thanks in advance. |
yes, this looks correct. |
Thank you for the code and inference script.
I understand that the PaSST model has been trained on AudioSet with sampling rate of 32kHz.
I am trying to make inference using the pre trained model.
Could you please let me know if I have to retrain the model with AudioSet (sampling rate of 16kHz) data to use it to make inference on 16kHz data or is there any other way?
Also, curious to know why did you use 32kHz instead of already available 16kHz AudioSet data?
Thanks in advance.
The text was updated successfully, but these errors were encountered: