I am trying to load a pretrained model but I’m hitting an error when I do. AttributeError: module ‘collections’ has no attribute ‘Sized’
from fastai import *
from fastai.vision import *
from matplotlib.pyplot import imshow
import numpy as np
import matplotlib.pyplot as plt
from skimage.transform import resize
from PIL import Image
learn = load_learner("", "model.pkl")
These are the version I’m using.
torch 1.11.0
torchvision 0.12.0
python 3.10.14
fastai 1.0.60
Can someone help me fix this problem?