Giter Club home page Giter Club logo

generate-nft-images's Introduction

Generate images

安装

推荐用 miniconda 来进行环境运行管理,安装完 miniconda 后,运行下面指令生成环境并运行

  1. conda create --name generate python=3.9 pillow pandas requests jupyterlab
  2. conda activate generate
  3. pip install python-dotenv and pip install py-cid
  4. 运行python src/get_table.py,会生成一个叫 ratio.csv 的表格,对里面的内容进行修改
  5. 运行python src/generate.py,生成图片
  6. (可省略) python src/final_check.py,删除重复并查看当前的概率分布,可以再做调整。
  7. python src/upload.py 上传数据到 ipfs

特性

  • 生成模版: 读取 parts 文件夹,读取里面的文件,检验格式和尺寸,生成一个 csv

  • 生成图片: 填写读取 csv 里面的概率,生成图片

  • 重命名图片: 支持删除部分生成的图片,并重命名

  • 上传图片: 上传图片和 metadata 到 ipfs,并生成 tokenURL 的 hash

generate-nft-images's People

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.