How to use from the
Use from the
Diffusers library
pip install -U diffusers transformers accelerate
import torch
from diffusers import DiffusionPipeline

# switch to "mps" for apple devices
pipe = DiffusionPipeline.from_pretrained("stable-diffusion-v1-5/stable-diffusion-v1-5", dtype=torch.bfloat16, device_map="cuda")
pipe.load_lora_weights("MA29/t2i-lora")

prompt = "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k"
image = pipe(prompt).images[0]

Text-to-Image LoRA

Rank-4 LoRA for Stable Diffusion v1.5, trained for 2,000 steps at 512px on 2,163 web-harvested image-caption pairs.

Code: https://github.com/Majd1029/Text-to-Image-Generation

Downloads last month
13
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for MA29/t2i-lora

Adapter
(675)
this model

Space using MA29/t2i-lora 1