Instructions to use nerijs/pixel-art-xl with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use nerijs/pixel-art-xl 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("nerijs/pixel-art-xl") prompt = "pixel art, a cute corgi, simple, flat colors" image = pipe(prompt).images[0] - Inference
- Notebooks
- Google Colab
- Kaggle
- Local Apps
- Draw Things
- DiffusionBee
What is the pixel square dimension of the resulting image?
#12
by hunkim98 - opened
Thank you for the great model!
I am trying to extract the rgb colors of each pixel square of the resulting image.
How big are the pixel squares in the generated images?
It seems to be 8px * 8px, but I am not quite sure.
Is there a method you would recommend for extracting the rgb colors of each pixel square?
The readme says this:
Downscale 8 times to get pixel perfect images (use Nearest Neighbors)