Save Fastai Model to Google Drive and Load Fastai Model from Google Drive
Help ·30 Sep 2020, 03:03·4
Have been trying to save a Fastai model to google drive and then load the model from google drive into google colab to make predictions. I can't seem to go about it, would really need your help.
Let say you save resnet18
So load it firsr create a leraner of fastai
learn = cnnlearner(dls,resnet18,errormetric)
learn.load(path of model from drive)
Note i didn't write exact code
And remove. Pth extension from path above
Thank you so much!
It's simple, mount the drive first then, when you save, save as learn.save("/content//My Drive/model") and load from same path
Thank you so much!