Run this model with HF Jobs
Run pawkanarek/spraix_sdxl_9frames_25epochs 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/pawkanarek/spraix_sdxl_9frames_25epochs. 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/pawkanarek/spraix_sdxl_9frames_25epochs 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.
Instructions to use pawkanarek/spraix_sdxl_9frames_25epochs with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use pawkanarek/spraix_sdxl_9frames_25epochs with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("pawkanarek/spraix_sdxl_9frames_25epochs", dtype=torch.bfloat16, device_map="cuda") prompt = "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k" image = pipe(prompt).images[0] - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- Draw Things
- DiffusionBee
import torch
from diffusers import DiffusionPipeline
# switch to "mps" for apple devices
pipe = DiffusionPipeline.from_pretrained("pawkanarek/spraix_sdxl_9frames_25epochs", dtype=torch.bfloat16, device_map="cuda")
prompt = "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k"
image = pipe(prompt).images[0]Why
My intention was to creat model that could generate animated sprites.
How
Trained for ~48 hours in total 25 epochs, on Google TPU v3-8 with this my custom script train_text_to_image_flax_sdxl on my custom dataset spraix_1024_9frames.
This is my second attempt to create such model. This time i changed dataset to always consist 9 frames, but it doesn't help much.
Appendix
This is demonstration only. This is my first time where i wrote training script of such complicated model in flax framework. Scirpt is probably full of bugs. Dataset that i prepared is also far from perfect. But I'm happy that i can train, save, and load my custom SDXL model.
How to use
Intented to use with FLAX
Model will generate ugly sprite animations, out of shape, deformed, pixelated and uneven. Prompt ideas
"Pixel-art animation of a blue water droplet with legs, that: is swiniging axe, facing: East",
"Pixel-art animation of a Tree, that: is Idle, facing: South",
"Pixel-art animation of a Dinosaur with a backpack, that: is jumping, facing: North",
"Pixel-art animation of a Fire demon with axe, that: is running, facing West",
Samples of the output of this model can be seen here:
- Downloads last month
- 10