Instructions to use MaziyarPanahi/sljm-bag-stable-diffusion-xl-base-1.0 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use MaziyarPanahi/sljm-bag-stable-diffusion-xl-base-1.0 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("MaziyarPanahi/sljm-bag-stable-diffusion-xl-base-1.0") prompt = "a photo of a sljm" image = pipe(prompt).images[0] - Inference
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- Draw Things
- DiffusionBee
sljm-bag-stable-diffusion-xl-base-1.0

- Prompt
- a photo of a sljm
How to use
prj_path = "MaziyarPanahi/sljm-bag-stable-diffusion-xl-base-1.0"
model = "stabilityai/stable-diffusion-xl-base-1.0"
pipe = DiffusionPipeline.from_pretrained(
model,
torch_dtype=torch.float16,
)
pipe.to("cuda")
pipe.load_lora_weights(prj_path, weight_name="pytorch_lora_weights.safetensors")
refiner = StableDiffusionXLImg2ImgPipeline.from_pretrained(
"stabilityai/stable-diffusion-xl-refiner-1.0",
torch_dtype=torch.float16,
)
refiner.to("cuda")
Download model
Weights for this model are available in Safetensors format.
Download them in the Files & versions tab.
- Downloads last month
- 26
Model tree for MaziyarPanahi/sljm-bag-stable-diffusion-xl-base-1.0
Base model
stabilityai/stable-diffusion-xl-base-1.0