Views
No views yet

1from diffusers import DiffusionPipeline
2import torch
3
4pipeline = AutoPipelineForText2Image.from_pretrained("SushantGautam/kandi2-decoder-medical-model", torch_dtype=torch.float16)
5prompt = "The colonoscopy image contains a single, moderate-sized polyp that has not been removed, appearing in red and pink tones in the center and lower areas."
6image = pipeline(prompt).images[0]
7image.save("my_image.png")wandb run page.