How to load a pretrained model
The notebooks on the Nightingale platform do not have direct access to the internet. You will need to manually download the pretrained model to your local machine and then upload it to the appropriate directory.
For example when using PyTorch to load a pretrained ResNet18 model, you may get a message like the one below. However on the Nightingale platform, the model is not downloading.
Click the link, and the model will be downloaded to your local machine. Then within JupyterLab upload the file.
After uploading the file, use a terminal to move it to the appropriate folder. The message above told us where to put it.
Now, we can load the pretrained model.