Diffusers How to use pbarbarant/sd-sonio with Diffusers:
pip install -U diffusers transformers accelerate
import torch
from diffusers import DiffusionPipeline
# switch to "mps" for apple devices
pipe = DiffusionPipeline.from_pretrained("stabilityai/sd-turbo", dtype=torch.bfloat16, device_map="cuda")
pipe.load_lora_weights("pbarbarant/sd-sonio")
prompt = "A healthy cardiac image from a Philipps scanner. The image should exhibit a high level of speckle noise like on the ultrasound or sar images."
image = pipe(prompt).images[0]