Skip to content

Spraix - making animated sprites with stable diffusion. Powered by Google TPU Research Cloud

License

Notifications You must be signed in to change notification settings

PawKanarek/spraix

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

61 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Spraix: making animated sprites with power of Stable Diffusion.

Powered by Google TPU Research Cloud.

Goal

To make animated sprites easily with the power of Stable Diffusion.

Current status

Currently I’m focused on other projects. The latest model was trained for ~48 hours on Google TPU v3-8 with this dataset variation containing only 9 frames of sprite animation. Model is available on the Hugging Face spraix_sdxl_9frames_25epochs

The next idea would include creating a better dataset which doesn't contain so much blank space. My dataset contains mostly gray background and I think this is a very big problem. When i'm back to this project i would like to experiment with different approaches.

Notes

  • This repository is fat because I pushed the training dataset and evaluation output, so keep in mind that cloning might take a while. I know it's bad, but this is my hobby project and sometimes I use the shortcuts.
  • This fine tuned model is far from perfect, It generates very, very ugly images. You can see them here (Be patient, this is 90 MB image!)

Done

WIP

Other projects :)

TODO

Setup

--pretrained_model_name_or_path='stabilityai/stable-diffusion-xl-base-1.0' --train_data_dir='train_data_1024_best_96/' --resolution=1024 --center_crop --train_batch_size=4 --mixed_precision='bf16' --num_train_epochs=16 --learning_rate=1e-05 --max_grad_norm=1 --output_dir='spraix_sdxl_best_96_16'
  • This repository is fat because I attached interference images from each training step
  • You can make a train dataset with make_train_data.py but you would have to manually download all the assets mentioned in Training Data section.

Training Data

Special thanks to the skilled sprite animation creators, contributing to the training dataset for this project.

About

Spraix - making animated sprites with stable diffusion. Powered by Google TPU Research Cloud

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages