The generative-ozzy-art
repository is a library for creating generative art, based upon the original repository for Scrappy Squirrels. It was originally developed by Rounak Banik for the purpose of creating NFT avatar & collectible projects.
The library allows you to generate images every distinct possible combination of your traits. For context, if you had trait art for a project like Bored Apes, the library could generate upwards of 1.2 billion distinct apes.
The library also allows you to configure the image generation process in such a way that you have complete control over how rare each and every trait is.
There is now an added functionality to generate JSON metadata for your NFTs that are in compliance with OpenSea metadata requirements (and by extension, the general NFT metadata standard).
This library can be used even if you do not know how to program (in Python
or otherwise). THe original repository author put out a Tutorial for more details on how to use (non-technical) and extend (technical) the library.
These instructions assume you already have at least Python 3 and Git installed for your respective system.
git clone https://github.com/osmo-support-lab/generative-ozzy-art.git
Make sure you are in the main directory for the repository.
cd <path>/<to>/generative-ozzy-art
The following command creates a virtual environment where all packages and python requirements can exist without needing to be installed globally. NOTE: On some operating systems you might need to replace python
with python3
.
python -m venv venv
In order to properly utilize the environment, you must "Activate" it. This means that your shell will direct all commands to take place within the venv
file.
Linux/MacOS:
source venv/bin/activate
On Windows (cmd.exe):
venv\Scripts\activate.bat
On Windows (Powershell):
venv\Scripts\Activate.ps1
pip install Pillow pandas progressbar2
Place your assets in logically named folders within assets
, and ensure you update config.py
to match.
Run python nft.py
in the repository folder.
In order to generate JSON metadata, define BASE_NAME
, BASE_IMAGE_URL
, and BASE_JSON
in metadata.py
.
Then run python metadata.py
.