Torch.load() issue : multiple argument

Hi,

I tried to run the L1_Sampling independently on Google drive and stuck upon :

torch.load() issue multiple


Regards

Hi. This error is because you do not have the complete file directory contents. You need to download all the content of the course directory including the trained model before you can recreate the lab on your own.

1 Like

Hello,
thanks for the reply. I did put the model_trained.pth inside the new folder weights, i even try to put this file in the same directory of the L1_Sampling.ipyb file.

I think, in google drive, I still lost about how to determine the path/to/model_trained.pth from the perspective of the executed L1_Sampling.ipyb.

Kinda lost.

Here is a thread which talks about how to port notebooks from the Coursera environment to the Colab environment. It includes some information about how the pathnames work in Colab/Google Drive. It’s not a direct answer to your question, but is definitely worth a look to gain general knowledge and debugging skills.

1 Like

Hi,
Their tips irrelevant since i am unable to find the link for downloading

the project.

Thank anyway.

Regards

Hello,

Just to let you know, I already resolve this that IT SHOULD BE A WARNING

as our python code should access the drive !

We just need to put this script

load in model weights and set to eval mode

import os

from google.colab import drive
drive.mount(‘/content/drive’)

regards