Update README.md
Browse files
README.md
CHANGED
@@ -43,11 +43,10 @@ model_id = "alkzar90/ddpo-compressibility-celebahq-256"
|
|
43 |
ddpm = DDPMPipeline.from_pretrained(model_id) # you can replace DDPMPipeline with DDIMPipeline or PNDMPipeline for faster inference
|
44 |
|
45 |
# run pipeline in inference (sample random noise and denoise)
|
46 |
-
image = ddpm()[
|
47 |
-
|
48 |
|
49 |
# save image
|
50 |
-
image
|
51 |
```
|
52 |
|
53 |
For more in-detail information, please have a look at the [official inference example](https://colab.research.google.com/github/huggingface/notebooks/blob/main/diffusers/diffusers_intro.ipynb)
|
|
|
43 |
ddpm = DDPMPipeline.from_pretrained(model_id) # you can replace DDPMPipeline with DDIMPipeline or PNDMPipeline for faster inference
|
44 |
|
45 |
# run pipeline in inference (sample random noise and denoise)
|
46 |
+
image = ddpm().images[0]
|
|
|
47 |
|
48 |
# save image
|
49 |
+
image.save("ddpo_compressibility_generated_image.png")
|
50 |
```
|
51 |
|
52 |
For more in-detail information, please have a look at the [official inference example](https://colab.research.google.com/github/huggingface/notebooks/blob/main/diffusers/diffusers_intro.ipynb)
|