Downloads · 30 days
13
14% of all-time downloads
matthew816/pixart-lora-lego
pixart-lora-lego is a text-to-image model from matthew816. Use it when you need an image from a text prompt. It is set up for diffusers. The card lists the license as openrail++.
This model is a LoRA fine-tuned version of PixArt-alpha/PixArt-Sigma-XL-2-1024-MS on the Norod78/lego-blip-captions-512 dataset for generating lego style images.
Downloads · 30 days
13
14% of all-time downloads
All-time downloads
90
Public
Repo size
33.1 MB
Likes
0
Public
Click a slice to open those files.
.safetensors33.1 MB · 100%
From the Hugging Face model README
This model is a LoRA fine-tuned version of PixArt-alpha/PixArt-Sigma-XL-2-1024-MS on the Norod78/lego-blip-captions-512 dataset for generating lego style images.
from diffusers import PixArtSigmaPipeline
import torch
# Load pipeline
pipe = PixArtSigmaPipeline.from_pretrained(
"PixArt-alpha/PixArt-Sigma-XL-2-1024-MS",
torch_dtype=torch.float16
).to("cuda")
# Load LoRA weights
pipe.load_lora_weights("matthew816/pixart-lora-lego")
# Generate image from text
prompt = "lego style, a cat sitting on a chair"
image = pipe(
prompt=prompt,
num_inference_steps=20,
guidance_scale=4.5
).images[0]
image.save("generated_lego_image.png")
This model generates images in lego style from text descriptions.
Example prompts:
If you use this model, please cite the original PixArt-Σ model and the dataset.
@article{chen2024pixart,
title={PixArt-Σ: Weak-to-Strong Training of Diffusion Transformer for 4K Text-to-Image Generation},
author={Chen, Junsong and others},
journal={arXiv preprint arXiv:2403.04692},
year={2024}
}