This repository contains a script for generating unique artworks by combining different body parts.
The folders should be arranged as follows:
- backgrounds/
- body/
- hair/
- hat/
- glasses/
- beard/
- smoke/
- hoodie/
- breclet/
- socks/
- shoe/
- jacket/
Each folder should contain PNG files representing the respective body part. Make sure the PNG files have transparent
backgrounds and make sure the files are 1080x1080 px of size, If different size is given then change the code of generate_artwork.py
at line 56
:
canvas = Image.new('RGBA', (1080, 1080), (0, 0, 0, 0))#1080,1080 is the width and height of the image
- Python 3.x
- PIL (Python Imaging Library)
- Clone the repository:
git clone https://github.com/9yon6yon-6yon/ArtisticImageGen.git
cd ArtisticImageGen
pip install -r requirements.txt
Modify the folders dictionary in the generate_artwork.py file to specify the paths to your folders containing the PNG files and the path to the output file.
Run the script:
python generate_artwork.py <num_artworks>
Replace <num_artworks>
with the desired number of unique artworks to generate.
The generated artworks will be saved in the output/
folder.
Feel free to customize and modify the content according to your specific requirements.