Skip to main content

A pipeline for converting images into stylized game sprites with style transfer, enhancement, and sprite sheet generation.

Project description

sprite-pipeline

You download images to a folder

image

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

python group.py --style painting.png -H 100 downloaded/

image

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

You open PS, resize layers, fix perspective, patch.

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

python spritesheet.py graphics.psd

image image

Congrats! You get packed spritesheet and UV coordinates in .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

Requirements

pip install numpy opencv-python torch torchvision pillow psd-tools rectpack modelscope realesrgan nst_vgg19 gdown

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sprite_pipeline-0.1.0.tar.gz (22.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

sprite_pipeline-0.1.0-py3-none-any.whl (22.0 kB view details)

Uploaded Python 3

File details

Details for the file sprite_pipeline-0.1.0.tar.gz.

File metadata

  • Download URL: sprite_pipeline-0.1.0.tar.gz
  • Upload date:
  • Size: 22.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.12.3

File hashes

Hashes for sprite_pipeline-0.1.0.tar.gz
Algorithm Hash digest
SHA256 5347c808e5bb31d66b0ad857106715d2c7971eae33d043dd6fa3410d6ff6030d
MD5 7cd6f031491b9d2ca632999845e51008
BLAKE2b-256 5ac9c5cf6a31ea6edeaddfbd303f1c2473449907f4b1f7007a777109b9518ca1

See more details on using hashes here.

File details

Details for the file sprite_pipeline-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for sprite_pipeline-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1bc03f4ba66f253cdfc0a6814a5c1ccbdb18e1cb3043e8410b6c319c9aecd195
MD5 9bda94e5d73e887692e323e6b7dd9e03
BLAKE2b-256 659b9a01deaf2cc5c24bd23c6082abb39ff4444cab6ad4820a7c4a2a60f3c3db

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page