Instructions to use samikhao/my-stars-lora-sdxl with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use samikhao/my-stars-lora-sdxl 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("samikhao/my-stars-lora-sdxl") prompt = "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k" image = pipe(prompt).images[0] - Inference
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- Draw Things
- DiffusionBee
MY-STARS LoRA (SDXL)
LoRA-адаптер для стиля MY-STARS. Тренирован train_dreambooth_lora_sdxl.py (diffusers).
Загрузка в Diffusers
import torch
from diffusers import StableDiffusionXLPipeline
pipe = StableDiffusionXLPipeline.from_pretrained(
"stabilityai/stable-diffusion-xl-base-1.0",
torch_dtype=torch.float16
).to("cuda")
pipe.load_lora_weights("samikhao/my-stars-lora-sdxl", weight_name="pytorch_lora_weights.safetensors")
prompt = "a star in MY-STARS style"
image = pipe(prompt, num_inference_steps=30, guidance_scale=5.0).images[0]
image.save("sample.png")
Основной файл: pytorch_lora_weights.safetensors (из checkpoint-500).
- Downloads last month
- 4
Model tree for samikhao/my-stars-lora-sdxl
Base model
stabilityai/stable-diffusion-xl-base-1.0