Hi all.
I tried many times until I dare ask a question here. Would appreciate help.
I tried to load a trained model to the local env, after I saved.
But, when I run to load, I got this issue:
AttributeError: 'Conv2d' object has no attribute 'padding_mode'
I tried updating the version, updating fast.ai, but to no avail.
After I failed locally, I tried to raise my trained weights to the same environment I had trained, but only to try and test whether it worked. And to my surprise I get the same error.
I add the code I try to load model only:
defaults.device = torch.device('cpu')
img = open_image('test-image.jpeg')
learn = load_learner('/notebooks/course-v3/nbs/dl1')
pred_class,pred_idx,outputs = learn.predict(img)
pred_class
An identical problem occurred when I tried to upload the model to render web server.
Please, any help.
Thanks.