Skip to content

mukurgupta/NFT-Minting-dApp-with-Neural-Style-Transfer

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 

Repository files navigation

Neural Styled NFT Minter

NFT Minting dApp with Neural Style Transfer

Neural Styled NFT Minter can generate and deploy NFTs on blockchain using Deep Learning based Neural Style Transfer to enable computer generated creative art pieces

How to run the Code

Dependencies

Running the dApp

  • Install the dependencies

  • Get the API key from NFT.STORAGE and store that in end-to-end/packages/react-app/src/constants.js

  • Download the Neural Style Transfer Model from TensorFlow Hub and add the path to local directory in neural_style_transfer_api.py

  • Run the backend flask API

    cd <path-to-NFT-Minting-dApp-with-Neural-Style-Transfer>
    python neural_style_transfer_api.py
    
  • Install Frontend modules using npm:

    cd end-to-end
    yarn install
    
  • Start local hardhat devnet:

    yarn chain
    
  • Open different terminal to deploy the smart contract:

    yarn deploy
    
  • After smart contract deployment, run the UI:

    yarn start
    

Usage

  • Add ethers to the dummy account by clicking on "Grab Funds from the Faucet" on the UI.
  • Add the content and the style image.
  • Add NFT name and click on "Mint" button to add the generated image to IPFS and store IPFS URI on devnet. Note the token ID.
  • Use the token ID to view the generated NFT in the "View an NFT" tab.

References

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 89.1%
  • Shell 5.2%
  • Python 1.6%
  • Dockerfile 1.4%
  • HTML 1.1%
  • TypeScript 0.6%
  • Other 1.0%