Resnext101_64 model and Fastai library


(Andrea de Luca) #1

Hi folks.

If I try and use that pretrained model (e.g. arch = resnext101_64, like recommended in lesson2/dog breeds competition), I get an error: indeed it tries to find a file containing (apparently) a set of weights for the earliest layers of that model, that is:

‘fastai/weights/resnext_101_64x4d.pth’

The problem is that fastai repository does NOT contain any weights directory.

Yet, If I try and use another pre-trained model, like resnet34 it works flawlessly. How can I get that resnext101_64 working?


(YJ Park) #2

Hello,

You will need to download a weights directory using wget:


(Aditya) #3

And place it in the fastai/fastai directory?


(Andrea de Luca) #4

Thanks! Sorry for the duplicate.

I think so.


(Alex Tat-Sang Choy) #5

May I ask where could I download resnext_101_64x4d.pth? I found the lua weights (called resnext_101_64x4d.t) on github but couldn’t find the .pth file.


#6

@tschoy, @balnazzar, and @ecdrid: I am not sure if you have figured it out but here is how I did it:
cd /home/paperspace/fastai/fastai/
wget http://files.fast.ai/models/weights.tgz
then unzip file weights.tgz


Wiki: Lesson 2
(Alex Tat-Sang Choy) #7

Thx, someone already told me. I visited http://files.fast.ai/models/ earlier, but didn’t realize the what I was looking for was in weights.tgz


#8

I met the same problem, thank you for your answer.