Giter VIP home page Giter VIP logo

generate_nft's Introduction

Generate_NFT : Create random mutations of a picture for NFT collections

PyPI Latest Release Package Status License

What is it?

generate-nft is a Python package that creates multiple random mutations of a given picture without needing to feed separate layers of the image. Just provide one image and it can generate multiple variants of that image quickly.

Version = 0.0.4

Main Features

Here are just a few of the things that generate-nft does internally:

  • Split the given image into mutliple color channels - RGB, RGBA etc..
  • Mix and match these color channels randomly to create unique images
  • Creates random background images to make it more unique
  • enhance the color, contrast & brightness of the image randomly
  • Define an experiment name - the output files will be stored with that name as prefix

Where to get it

The source code is currently hosted on GitHub at: https://github.com/Mcprasad/Generate_NFT

Binary installers for the latest released version are available at the Python Package Index (PyPI)

#PyPI
pip install generate-nft

To update the existing version of the package

#pypi
pip install -U generate-nft

Installation from sources

Follow the steps given below to install the package from the source

  • Clone the github repo
    https://github.com/Mcprasad/Generate_NFT.git
  • Run setup.py
    python3 setup.py sdist bdist_wheel

How to use

from Generate_NFT import generate_art
generate_art.generate("input_image_path","output_image_directory",number_of_mutations,output_width,output_height,experiment_name)

An example is shown below:

from Generate_NFT import generate_art

#Program will output with the given experiment name as the prefix 
experiment_name = "mountains"
generate_art.generate("/documents/img.jpg","/documents/output/",50,1920,1920,experiment_name)

License

MIT License

Future Ideas

  • Ability to combine traits from multiple images
  • Extract objects from an image and superimpose those
  • Generate meta data for each image in ERC721 standard
  • Ability to launch the collections into a preferred blockchain; create and register contract, link metamask wallet and IPFS

generate_nft's People

Contributors

mcprasad avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

generate_nft's Issues

no out put is generated

i have tried using it butt there is no output generated, may be am not running the code properly kindly help :)

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.