I was able to successfully create the model body you are looking for by instantiating the model class like this:
Additionally, I had to use
from fastai.vision.all import * instead of just importing
fastai (the top level library)
Hope this helps!
replace resnet34 with resnet34()
Sorry for the late reply, such a noob mistake, I can’t believe that I forgot to type the ().
Thanks for the answer