Instructions to use Shoaibism/sdxl-product-photography-lora with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use Shoaibism/sdxl-product-photography-lora 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/stable-diffusion-xl-base-1.0", dtype=torch.bfloat16, device_map="cuda") pipe.load_lora_weights("Shoaibism/sdxl-product-photography-lora") prompt = "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k" image = pipe(prompt).images[0] - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- Draw Things
SDXL โ Product Photography LoRA
Fine-tuned on 20 studio sneaker images using DreamBooth LoRA on Kaggle T4 (15GB).
Training: 800 steps, ~2.5 hours. Trigger word: PRDCT
Usage
from diffusers import StableDiffusionXLPipeline
import torch
pipe = StableDiffusionXLPipeline.from_pretrained(
"stabilityai/stable-diffusion-xl-base-1.0",
torch_dtype=torch.float16
)
pipe.load_lora_weights("Shoaibism/sdxl-product-photography-lora")
pipe.enable_model_cpu_offload()
image = pipe(
"a photo of a PRDCT white sneaker, studio background, professional product photography, 8k",
height=1024, width=1024, num_inference_steps=25, guidance_scale=7.5,
).images[0]
image.save("result.png")
Before / After
Portfolio Samples
Author
Muhammad S. โ AI/ML Engineer Upwork
- Downloads last month
- 78
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐ Ask for provider support
Model tree for Shoaibism/sdxl-product-photography-lora
Base model
stabilityai/stable-diffusion-xl-base-1.0
