WSI Generation with DDPM

WSI image

A Diffusion Model for Generating WSI Patches

How to use the model?

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

Downloads last month
22
Inference Providers NEW
This model is not currently available via any of the supported Inference Providers.
The model cannot be deployed to the HF Inference API: The HF Inference API does not support unconditional-image-generation models for diffusers library.

Space using kaveh/wsi_generator 1