GithubHelp home page GithubHelp logo

artisticimagegen's Introduction

Artistic Image Generation

Banner

This repository contains a script for generating unique artworks by combining different body parts.

Folder Arrangement

The folders should be arranged as follows:

  1. backgrounds/
  2. body/
  3. hair/
  4. hat/
  5. glasses/
  6. beard/
  7. smoke/
  8. hoodie/
  9. breclet/
  10. socks/
  11. shoe/
  12. 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

Prerequisites

  • Python 3.x
  • PIL (Python Imaging Library)

How to Run

  1. 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.

artisticimagegen's People

Contributors

9yon6yon-6yon avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.