Views
No views yet
import torch
from diffusers import DiffusionPipeline
checkpoint = 'takuoko/small-sd-dreambooth-lora-dog'
prompt = 'A photo of sks dog in a bucket'
pipe = DiffusionPipeline.from_pretrained(
'segmind/small-sd', torch_dtype=torch.float16)
pipe.to('cuda')
pipe.load_lora_weights(checkpoint, weight_name='pytorch_lora_weights.bin')
image = pipe(
prompt,
num_inference_steps=50,
).images[0]
image.save('demo.png')


