Run this model with HF Jobs

Run nerijs/pixel-art-xl on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.

Paste one of these prompts into your coding agent:

Fine-tune on my dataset

Use HF Jobs to fine-tune https://huggingface.co/nerijs/pixel-art-xl. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.

Run batch inference

Use HF Jobs to run batch inference with https://huggingface.co/nerijs/pixel-art-xl on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.

Pixel Art XL

Consider supporting further research on Patreon or Twitter

F1hS8XHXwAQrMEW.jpeg F1hS489X0AE-PK5.jpeg

Downscale 8 times to get pixel perfect images (use Nearest Neighbors) Use a fixed VAE to avoid artifacts (0.9 or fp16 fix)

Need more performance?

Use it with a LCM Lora!

Use 8 steps and guidance scale of 1.5 1.2 Lora strength for the Pixel Art XL works better

from diffusers import DiffusionPipeline, LCMScheduler
import torch

model_id = "stabilityai/stable-diffusion-xl-base-1.0"
lcm_lora_id = "latent-consistency/lcm-lora-sdxl"
pipe = DiffusionPipeline.from_pretrained(model_id, variant="fp16")
pipe.scheduler = LCMScheduler.from_config(pipe.scheduler.config)

pipe.load_lora_weights(lcm_lora_id, adapter_name="lora")
pipe.load_lora_weights("./pixel-art-xl.safetensors", adapter_name="pixel")

pipe.set_adapters(["lora", "pixel"], adapter_weights=[1.0, 1.2])
pipe.to(device="cuda", dtype=torch.float16)

prompt = "pixel, a cute corgi"
negative_prompt = "3d render, realistic"

num_images = 9

for i in range(num_images):
    img = pipe(
        prompt=prompt,
        negative_prompt=negative_prompt,
        num_inference_steps=8,
        guidance_scale=1.5,
    ).images[0]
    
    img.save(f"lcm_lora_{i}.png")

Tips:

Don't use refiner

Works great with only 1 text encoder

No style prompt required

No trigger keyword require

Works great with isometric and non-isometric

Works with 0.9 and 1.0

Changelog

v1: Initial release

Downloads last month
42,736
Inference Providers NEW
Examples

Model tree for nerijs/pixel-art-xl

Adapter
(9,865)
this model
Adapters
2 models

Spaces using nerijs/pixel-art-xl 100