HTTP error 403 downloading cnn

Hi, you can run the following command from colab, replacing the url with your model url:

!cd /root/.cache/torch/checkpoints && curl -O https://download.pytorch.org/models/resnet50-19c8e357.pth

This will download the model straight to colab, in the right directory. I’s much faster than downloading to disk. Hope it helps!

8 Likes