huggingface / huggingface/course

Diffusion Course Unit 1: An Introduction to Diffusion Models

Open
#766 0 comments 1 reaction 0 assignees View on GitHub
translation
Dominant language
MDX
Stars
4.2k
Forks
1.4k
Avg merge
13m
Merged PRs (30d)
1

Description

I am going through the course. When I am executing the below code cell from [the notebook Introduction to Diffusers using Kaggle](https://www.kaggle.com/code/valmetisrinivas/notebook006d016869/edit), I am getting below indicated error. I am unable to figure out the solution. My HF repository has ‘diffusion_pytorch_model.bin’ file. I tried using use_safetensors = True parameter, tried changing the extension of file to .bin etc., I tried using the discord to ask the question. However, the HF discord channels/ messages are not loading up to ask the question; there seems to be some problem with HuggingFace Discord channels [Hugging Face Diffusion Models Course - Hugging Face Diffusion Course](https://huggingface.co/learn/diffusion-course/unit0/1)
![image](https://github.com/user-attachments/assets/019940b4-b8dc-4db7-9b7c-5ad20d3ebd11)
Appreciate if someone can help.

```
from diffusers import DDPMPipeline

image_pipe = DDPMPipeline.from_pretrained(hub_model_id)
pipeline_output = image_pipe()
pipeline_output.images[0]
class-butterflies-32-VS/snapshots/c15f67e737261549b7e8b1fa66f66164a3bde817.
```

> OSError: Error no file named diffusion_pytorch_model.bin found in directory /root/.cache/huggingface/hub/models--vsrinivas--sd-

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.