alkzar90 commited on
Commit
e51e26a
1 Parent(s): 503ff4d

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +2 -3
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()["sample"]
47
-
48
 
49
  # save image
50
- image[0].save("ddpm_generated_image.png")
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)