-
Notifications
You must be signed in to change notification settings - Fork 221
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
After fine-tune a 3-class dataset, how to load its fine-tuned weighted to update pre-trained ast model? #118
Comments
it seems it is due to the inconsistent |
Thanks for the reply. Here's the training script:
|
If you set |
It works, and thanks again. BTW, when I loaded fine-tuned weights to update audioset pretrained model, do I set audioset_pretrain=True or audioset_pretrain=False?
|
I guess it doesn't matter. You can check by
-Yuan |
Just setting |
thanks for letting me know.
-Yuan |
Hi @YuanGongND,
In egs/audioset/inference.py, it tells I can load a pre-trained model as follows,
However, when I fine-tuend the pre-trained model on a 3-class datasets, then reload it again. Error message is,
size mismatch for module.v.pos_embed: copying a param with shape torch.Size([1, 602, 768]) from checkpoint, the shape in current model is torch.Size([1, 362, 768]).
My python script
Do I miss sth here? Any suggestions are appreciated.
The text was updated successfully, but these errors were encountered: