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
⬇️⬇️⬇️⬇️⬇️⬇️⬇️⬇️⬇️⬇️⬇️⬇️
python group.py --style painting.png -H 100 downloaded/
⬇️⬇️⬇️⬇️⬇️⬇️⬇️⬇️⬇️⬇️⬇️⬇️
You open PS, resize layers, fix perspective, patch.
⬇️⬇️⬇️⬇️⬇️⬇️⬇️⬇️⬇️⬇️⬇️⬇️
python spritesheet.py graphics.psd
Congrats! You get packed spritesheet and UV coordinates in .txt
Details
- BiRefNet to extract foreground
- RetinexNet to fix lights
- nst_vgg19 for Neural Style Transfer
- RealESRGAN_MtG to improve quality
- 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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5347c808e5bb31d66b0ad857106715d2c7971eae33d043dd6fa3410d6ff6030d
|
|
| MD5 |
7cd6f031491b9d2ca632999845e51008
|
|
| BLAKE2b-256 |
5ac9c5cf6a31ea6edeaddfbd303f1c2473449907f4b1f7007a777109b9518ca1
|
File details
Details for the file sprite_pipeline-0.1.0-py3-none-any.whl.
File metadata
- Download URL: sprite_pipeline-0.1.0-py3-none-any.whl
- Upload date:
- Size: 22.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1bc03f4ba66f253cdfc0a6814a5c1ccbdb18e1cb3043e8410b6c319c9aecd195
|
|
| MD5 |
9bda94e5d73e887692e323e6b7dd9e03
|
|
| BLAKE2b-256 |
659b9a01deaf2cc5c24bd23c6082abb39ff4444cab6ad4820a7c4a2a60f3c3db
|