Lesson 1 – Weights directory not found


(Jorge Barrios) #1

When executing the notebook for lesson1-rxt50 I get this error:

[Errno 2] No such file or directory: ‘/home/paperspace/fastai/courses/dl1/fastai/weights/resnext_50_32x4d.pth’

I’m uncertain about how to get these files in the correct place. I’m using the fast.ai template in paperspace.

It’s possible that I deleted something by mistake, so does anybody know a way to restore the files to their original state or even the whole papaerspace machine?


Broken folder links in notebooks?
(ecdrid) #2

Actually we need to download the weights and place it in the proper directory…
Searching the forum might help…
files.fast.ai


#3

The specific commands that that fixed this for me were as follows:

Navigate to ~/fastai/courses/dl1/fastai/
wget http://files.fast.ai/models/weights.tgz
tar -xvzf weights.tgz

and then I was able to run:
arch = resnext101_64
learn = ConvLearner.pretrained(arch, data, precompute = True)

in my notebook without an error.


(Chris) #4

Thanks ianhi this helped.


(Sameer) #5

Thank you, this helped me as well


(Lee) #6

Thanks, ianhi, this solved my problem. cheers!


#7

In my case I also had to download and move the weights directory to virtualenv_name/lib/python3.6/site-packages/fastai/weights. It worked then.