Skip to content

alexanderbrodko/sprite-pipeline

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

52 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pip install sprite-pipeline

You download images to a folder

image

⬇️⬇️⬇️⬇️⬇️⬇️⬇️⬇️⬇️⬇️⬇️⬇️

sp_group --style painting.png -H 100 downloaded/

image

⬇️⬇️⬇️⬇️⬇️⬇️⬇️⬇️⬇️⬇️⬇️⬇️

You open output.psd, resize layers, fix perspective, patch.

⬇️⬇️⬇️⬇️⬇️⬇️⬇️⬇️⬇️⬇️⬇️⬇️

sp_pack

image image

Congrats! You get packed spritesheet and UV coordinates in .txt

Features

  • Foreground extraction
  • Light correction
  • Style transfer
  • PSD building
  • Spritesheet packing

CLI args

sp_group

sp_group folder_name/ --style STYLE_IMAGE -W MAX_WIDTH -H MAX_HEIGHT -f STYLE_FORCE -o OUTPUT_PSD

Creates PSD file containing group folder_name where each layer is a processed image with the specified maximum dimensions.

sp_pack

sp_pack psd_file.psd -o OUTPUT_DIR --format SPRITESHEET_IMAGE_FORMAT

For each group in PSD creates packed spritesheet image and UV coordinates file named group_name.fmt and group_name_uvs.txt.

Details

  1. BiRefNet to extract foreground
  2. RetinexNet to fix lights
  3. nst_vgg19 for Neural Style Transfer
  4. RealESRGAN_MtG to improve quality
  5. OpenCV to other filters and algorithms

output

About

make sprites from random images

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages