How Diffusion Models Work - model_trained.pth

Hi there,

I’m trying to run locally the code from the Sampling lessob from the course How Diffusion Models Work:

It says that model_trained.pth file is not found. Do I need to download this model from anywhere?

Thanks!

hi @juanfausd

every assignment codes comes with metadata(utils.py file, libraries or images) which needs to be downloaded from File==>Open section when you opened the assignment in Coursera provided environment.

Even after that sometimes when we run the codes locally we can encounter error due to dependency discrepancies.

So if the assignment you have worked comes with requirements.txt file which provides this information, you need to make sure All the libraries and/or modules should have same version in your local system as in the coursera provided environment.

Regards
DP

1 Like

Thanks for your support! :slight_smile:

1 Like