- install dependencies
pip install -r requirements.txt - modify configs in
src/config.py - run
python src/get_table.py, this will generate a table called ratio.csv, you can modify probability of feature occurrence in the ratio column or add rules inrules.csvto limit the coexistence or mutual exclusion. - run
python src/generate.pyto generate images. python src/final_check.py, remove the duplicates and view the current probability distribution, which can be adjusted again.- (can skip)
python src/upload_mystery_box.pypush mystery box metadata to IPFS python src/upload.pypush data to IPFS- (if need)
python src/fresh_metadata.pyto refresh opensea metadata to show new images
-
Generate a template: reads the parts folders, reads the files inside, checks the format and size, and generates a csv
-
Generate image: Fill in the probability of reading the csv and generate the image
-
Rename images: Support to delete some of the generated images and rename others
-
Upload image: upload image and metadata to ipfs and generate hash of tokenURL
-
Multiple folder support: Rare features can be placed in separate folders for generate
-
Upload mystery box data: generate mystery box metadata and upload
-
Generate images by attr.csv, it's use for update old images
-
Refresh metadata: query ipfs and opensea api to refresh metadata, need opensea apikey
-
Using rule files to limit the coexistence or mutual exclusion of generated elements