File size: 771 Bytes
d63e8ca ce510db d63e8ca 110e003 5fdc130 ce510db 5fdc130 3b99c79 5fdc130 e15b4af |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 |
---
license: gpl-3.0
language:
- en
metrics:
- mse
pipeline_tag: unconditional-image-generation
tags:
- diffusion
- image generation
- unconditional
- wsi
---
# WSI Generation with DDPM

A Diffusion Model for Generating WSI Patches
How to use the model?
```py
from diffusers import DiffusionPipeline
wsi_generator = DiffusionPipeline.from_pretrained("kaveh/wsi_generator")
device = torch.device('cuda' if torch.cuda.is_available() else 'cpu')
wsi_generator.to(device)
generated_image = wsi_generator().images[0]
generated_image.save("wsi_generated.png")
```
there is also a docker image available for this model in the following link:
[https://hub.docker.com/r/kaveh8/wsi-ddpm](https://hub.docker.com/r/kaveh8/wsi-ddpm) |