How to load a Fastai model using Pytorch? #874
Unanswered
ShubhankarRaj
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I have a fastai model was trained on RAVDESS's audio data to classify emotions:
The remaining steps are the usual iterations of learn.fit_one_cycle where we are fine-tuning the model.
We created a fastai vision model using pretrained resnet34 model. The newly created model is loaded in Pytorch as below. NOTE that we are adding a Linear layer at the end of the fastai model:
WIth this code, the error that I am getting is : RuntimeError: mat1 and mat2 shapes cannot be multiplied (1x6 and 512x6)
I understand that there is some issue in size compatibity of the model and input. But I am not able to figure out how to resolve it.
Beta Was this translation helpful? Give feedback.
All reactions