nakajimayoshi commited on
Commit
e9faef0
1 Parent(s): 7a2937b

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +4 -4
README.md CHANGED
@@ -13,18 +13,18 @@ Diffusion model trained on a public dataset of images from [image data resource]
13
  ![realsamples](samples/real_samples.png)
14
 
15
  ```py
16
- from diffusers import DDPMPipeline
17
 
18
  model_id = "nakajimayoshi/ddpm-iris-256"
19
 
20
  # load model and scheduler
21
- ddpm = DDPMPipeline.from_pretrained(model_id) # you can replace DDPMPipeline with DDIMPipeline or PNDMPipeline for faster inference
22
 
23
  # run pipeline in inference (sample random noise and denoise)
24
- image = ddpm().images[0]
25
 
26
  # save image
27
- image.save("ddpm_generated_image.png")
28
  ```
29
  The role of generative AI in the science is a new discussion and the merits of it have yet to be evaluated. Whilst current image-to-image and text-to-image models make it easier than ever to create stunning images, they lack the specific training sets to replicate accurate and detailed images found in flourescent cell microscopy.
30
  We propose ddpm-IRIS, a difusion network leveraging Google's [Diffusion Model](https://arxiv.org/abs/2006.11239) to generate visual depitctions of cell features with more detail than traditional models.
 
13
  ![realsamples](samples/real_samples.png)
14
 
15
  ```py
16
+ from diffusers import DDIMPipeline, DDPMPipeline, PNDMPipeline
17
 
18
  model_id = "nakajimayoshi/ddpm-iris-256"
19
 
20
  # load model and scheduler
21
+ ddim = DDIMPipeline.from_pretrained(model_id) # you can replace DDPMPipeline with DDIMPipeline or PNDMPipeline for faster inference
22
 
23
  # run pipeline in inference (sample random noise and denoise)
24
+ image = ddim().images[0]
25
 
26
  # save image
27
+ image.save("sample.png")
28
  ```
29
  The role of generative AI in the science is a new discussion and the merits of it have yet to be evaluated. Whilst current image-to-image and text-to-image models make it easier than ever to create stunning images, they lack the specific training sets to replicate accurate and detailed images found in flourescent cell microscopy.
30
  We propose ddpm-IRIS, a difusion network leveraging Google's [Diffusion Model](https://arxiv.org/abs/2006.11239) to generate visual depitctions of cell features with more detail than traditional models.