In trying to recreate Jeremy’s work, I keep getting an error when running “learn = ConvLearner.pretrained(arch, data, precompute=True)”, I keep getting a FileNotFoundError. Specifically:
FileNotFoundError: [Errno 2] No such file or directory: ‘/home/paperspace/fastai/courses/dl1/fastai/weights/resnext_101_64x4d.pth’
Hmmm…I don’t even have a directory called weights. Where did I go wrong? Please limit the answer to fastai related failures. The other list is way too long.
I tried all the things mentioned before but I am still running into some issues.
The initial Error that i got was:
FileNotFoundError: [Errno 2] No such file or directory: ‘/home/paperspace/fastai/courses/dl1/fastai/weights/resnext_101_64x4d.pth’
I did not have a folder called weights.
I did have a folder called modules with a file called resnext_101_64x4d.PY (not a pth file)
I went into the fast ai folder and ran the command "wget http://files.fast.ai/models/weights.tgz"
It did put the “weights.tgz” file into the fastai folder.
I also tried creating my own weights’ folder and copying all the files from models into it. No luck.
I am quite new to programming so it might be that I have messed something up with all the bash commands and moving stuff around.
I have tried deleting the fastai folder, getting it back and repeating the whole process. No luck …
Somehow i feel like I made this way more complicated than it is …
Any ideas?
I had the same error as others with using resnext_100 described here. I assume the reason that the weights for for resnext_100 are not included in the fastai GitHub repository is because of their sizes. Wouldn’t it make sense to have calls to resnext_101_64x4d automatically trigger a download of the file? Are there any ip issues, or is that just something on the to-do-list? If helpful, I would be happy to implement and add to the fastai code base.
Thank you!! I too had the same issue and now its resolved.
I’m using clouderizer for this course and it’ll be great if downloading and extraction of the weight files can be bootstrapped like downloading the competitor’s data
See @jinilcs comment above for the actual commands
These commands can actually be found in the lesson1-breeds notebook right under the cells that are setting the path variable and hyperparameters like batch size etc…
I ran into this error because I downloaded the weights file BUT didn’t unzip