GithubHelp home page GithubHelp logo

botfuturesavings / generative-nft-art Goto Github PK

View Code? Open in Web Editor NEW

This project forked from thaddeusdiamond/generative-nft-art

0.0 0.0 0.0 13 KB

Libraries for creating generative art and the associated metadata for use in NFTs

License: Apache License 2.0

Python 100.00%

generative-nft-art's Introduction

generative-nft-art

Libraries for creating generative art and the associated metadata for use in NFTs

Quickstart

This package is not (yet) made generic enough to be used from the command line for arbitrary NFT art. However, we hope that the details herein can help you create generative programs that will create fun, unique art with specified rarity gradients.

The most interesting functions in the Python script are highlighted below.

Generating Random Combinations With a Hamming Distance Goal Seek

def generate_nft_metadata(start_num, total_nfts, traits_ratios, acceptable_hamming, static_traits, variable_traits)

Performing the Actual Image Composition Using PIL

def compose_image(combination, bg_color, in_pics_dir)

See Pillow for more information.

Compiling Metadata Statistics For Understanding the Algorithm's Performance

def compile_metadata_statistics(full_list, variable_traits)

Uploading to IPFS Using NFT.Storage

def upload_to_ipfs(api_client, nft, in_pics_dir)

See NFT.Storage for more information.

Generating Sample Images After the Fact for Marketing or Other Analysis

def generate_sample_images(metadata_dir, pics_dir, num_images, num_iterations, output_pics_dir)

Note that this function incorporates hamming distance to ensure that you get a very unique set of sample images.

Wild Tangz

The command line code that started it all was:

python3 src/py/compose.py generate-nfts --total-nfts 4410 --min-hamming 3 --percentages-file tangz/percentages.json

The Astronaut set was generated by hand to ensure that the static-trait flag was set correctly and no odd combinations were created. The final result is now visible on the secondary market via JPG.Store or epoch.art.

generative-nft-art's People

Contributors

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