Code Monkey home page Code Monkey logo

generate-nft-images's Introduction

Generate NFT images

install

  1. install dependencies pip install -r requirements.txt
  2. modify configs in src/config.py
  3. 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 in rules.csv to limit the coexistence or mutual exclusion.
  4. run python src/generate.py to generate images.
  5. python src/final_check.py, remove the duplicates and view the current probability distribution, which can be adjusted again.
  6. (can skip) python src/upload_mystery_box.py push mystery box metadata to IPFS
  7. python src/upload.py push data to IPFS
  8. (if need) python src/fresh_metadata.py to refresh opensea metadata to show new images

features

  • 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

generate-nft-images's People

Contributors

mrzeing avatar script-money avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

generate-nft-images's Issues

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.