nakajimayoshi commited on
Commit
891ef27
·
1 Parent(s): 67e60d8

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +13 -0
README.md CHANGED
@@ -12,7 +12,20 @@ Diffusion model trained on a public dataset of images from [image data resource]
12
  # Ground-truth image data obtained from idr:
13
  ![realsamples](samples/real_samples.png)
14
 
 
 
15
 
 
 
 
 
 
 
 
 
 
 
 
16
  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.
17
  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.
18
 
 
12
  # Ground-truth image data obtained from idr:
13
  ![realsamples](samples/real_samples.png)
14
 
15
+ ```py
16
+ from diffusers import DDIMPipeline
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("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.
31