Views
No views yet
UNet2DModelDDPMScheduler128x128RGB (3)train/Moderate Diabetic Retinopathy128x128[-1, 1]| Setting | Value |
|---|---|
| Epochs | 35 |
| Batch size | 16 |
| Optimizer | AdamW |
| Learning rate | 1e-4 |
| Scheduler | Cosine w/ warmup |
| Precision | Mixed (fp16) |
| Diffusion Timesteps | 1000 |
| Image Samples Saved | Every 10 epochs |
1from diffusers import DDPMPipeline
2import torch
3import matplotlib.pyplot as plt
4
5pipeline = DDPMPipeline.from_pretrained("GS-23/ddpm-unet-retinal-fundus-image-generator")
6images = pipeline(batch_size=1, generator=torch.manual_seed(0)).images
7
8for img in images:
9 plt.imshow(img)
10 plt.axis("off")
11 plt.show()