GithubHelp home page GithubHelp logo

devrishijain / aigen Goto Github PK

View Code? Open in Web Editor NEW

This project forked from aigenprotocol/aigen

0.0 0.0 0.0 85 KB

Aigen's open-source implemenation of various tools to create AINFT effortlessly

License: MIT License

JavaScript 45.73% Python 49.09% Solidity 5.18%

aigen's Introduction

Aigen's open-source tools to create AINFTs effortlessly

deploy AINFTToken smart contract

The smart contract can be found at contracts->AINFTToken.sol Using Remix IDE, deploy the smart contract to the local Ganache or Goerli testnet. It is recommended that you test the smart contract before deploying it to the mainnet.

create environment variables

create a .env file and put these variables

ACCOUNT_ADDRESS=0x0000000000000000000000000000000000000000
PRIVATE_KEY=000000000000000000000000000000000000000000000000000000000000000
AINFT_CONTRACT_ADDRESS=0x000000000000000000000000000000000000
PROVIDER_URL=http://0.0.0.0:8545
NFTSTORAGE_TOKEN=<NFTStorage Token>
MODELS_DIR=/Users/apple/aigen

commands

install python dependencies

pip install -r requirements

extract model weights and create shards in a single command

python main.py -n "Test" -m "<path-to-model.h5>" -no 20

provide model name, model path and no of ainfts to create

  • For the time being, we only support Keras models

code

extract and save model weights

from ai import save_model
save_model(model_name=model_name, model_dir=MODELS_DIR, model_path=model_path)

provide model name and local model path to start extracting weights

create shards of model weights

from ai import create_shards
create_shards(model_name=model_name, model_dir=MODELS_DIR, no_of_ainfts=no_of_ainfts)

provide model name and no of ainfts to create. This function will automatically create shards from model weights

install node dependencies

npm install

or 

yarn

mint ainfts

npm run ainft --action="createAINFT" --model_name="Test" --model_dir="/Users/apple/aigen/test"

this step will deploy files to NFTStorage and mint AINFTs

License

This project is licensed under the MIT License - see the LICENSE file for details

aigen's People

Contributors

devrishijain avatar kailashahirwar 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.