Giter VIP home page Giter VIP logo

imagesubnet's Introduction

ImageSubnet

Image Subnet, or text2image, is built by default to host and run Stable Diffusion models. However, it is adaptable, and any model can be run on the network that takes in a prompt, width, and height paramaters.

The Validator is built such that it ranks miners images on aesthetic and how closely they match the given prompt. Also, images which are too similiar in style will be slightly penalized to promote diverisity among image models hosted on miners.

Getting Started

Both Validators and Miners will need to register to subnet 5 in order to participate in the ImageSubnet. You can do so by recycle registering like so btcli recycle_register --netuid 5

For miners the command you will run is py miner.py --miner.model [huggingface/repo OR path_to/model.safetensors]

Optional arguments include

--device default: cuda, where to run the image model off of

--miner.model default: prompthero/openjourney-v4, a huggingface repo or local safetensors file

--miner.max_batch_size default: 1, the maximum number of images your miner will generate per request

--miner.allow_nsfw default: False, set to True if you wish to allow NSFW content. (Warning, this may produce unwanted content)

--subtensor.chain_endpoint default: mainnet opentensor subnet, override to use a custom subnet endpoint

--wallet.name default: default, name of your wallet

--wallet.hotkey default: default, set wallet hotkey name

--wallet.path default: ~/.bittensor/wallets, the path to which your bittensor wallets reside at

--netuid default: 5, the subnet you want to connect to (64 on testnet)

--axon.port default: 3000, port to launch your axon in, this needs to be open to the public

For validators, the command you will run is py validator.py

Optional arguments include

--netuid default: 5

--subtensor.chain_endpoint default: mainnet opentensor subnet, override to use a custom subnet endpoint

--validator.allow_nsfw default: False, as a miner, choose to allow NSFW content from miners. Note: Miners still have the option of refusing to generate nsfw content.

--validator.save_images default: False, save images and prompts to save_dir

--validator.save_dir default: ./images, path to a folder to save images, folder will be created if it doesnt exist. If a custom path is set --validator.save_images will be set to True

--validator.use_absolute_size default: False, set to True if you want the exact width and height, else if a miner responds with the same aspect ratio they wont be penalized.

--validator.label_images default: False, set to True to label images with dendrite and score

--device default: cuda, where to run the image model off of

--axon.port default: 3000, port to launch your axon in, this needs to be open to the public

imagesubnet's People

Contributors

creativebuilds avatar zjuuu avatar bardthescribe avatar unconst avatar bradleytf 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.