Views
No views yet
1from diffusers import StableDiffusion3Pipeline
2import torch
3
4pipe = StableDiffusion3Pipeline.from_pretrained(
5 'stabilityai/stable-diffusion-3-medium-diffusers',
6 torch_dtype=torch.float16,
7 text_encoder_3=None, tokenizer_3=None,
8).to('cuda')
9pipe.load_lora_weights('yuurei002/smart-medical-lora-sd3')
10
11image = pipe(
12 'smsart, medical illustration of human heart anatomy, cross-section',
13 negative_prompt='blurry, low quality, watermark, photo, realistic',
14 num_inference_steps=28, guidance_scale=7.0,
15).images[0]