Views
No views yet
PRDCT1from diffusers import StableDiffusionXLPipeline
2import torch
3
4pipe = StableDiffusionXLPipeline.from_pretrained(
5 "stabilityai/stable-diffusion-xl-base-1.0",
6 torch_dtype=torch.float16
7)
8pipe.load_lora_weights("Shoaibism/sdxl-product-photography-lora")
9pipe.enable_model_cpu_offload()
10
11image = pipe(
12 "a photo of a PRDCT white sneaker, studio background, professional product photography, 8k",
13 height=1024, width=1024, num_inference_steps=25, guidance_scale=7.5,
14).images[0]
15image.save("result.png")
