GithubHelp home page GithubHelp logo

ausbitbank / stable-diffusion-discord-bot Goto Github PK

View Code? Open in Web Editor NEW
208.0 6.0 40.0 1.91 MB

A discord bot to generate AI art from prompts using invokeAI

License: The Unlicense

JavaScript 100.00%
discord discord-bot invokeai stable-diffusion

stable-diffusion-discord-bot's Introduction

stable-diffusion-discord-bot

A discord bot built to interface with the InvokeAI fork of stable-diffusion.

top.gg discord license size last commit twitter

This branch is a work in progress for a major rewrite of the arty project.

It still has a long way to go before it's ready for public use and should be considered an alpha test at best.

It's currently compatible with invokeai 4.2.0.

Working:

  • Oldschool !dream prompt + parameters
  • Supports multiple Invoke3 backends on local network (no direct file access required)
  • Building node graphs from job requests,submitting,tracking,posting to discord
  • Refresh button starting renders using png metadata alone (no job db required!)
  • Input images can be used as sources for image to latent, controlnet, ip_adapter
  • Tweak menu with models, aspect ratio, scale, steps, sampler, strength
  • Remove background using custom invokeai node
  • websocket job progress tracking, discord status updates for invoke cluster queue info
  • LLM integration (/chat , /describe , prompt improvement)

Setup:

  • git clone -b arty2-invoke4-WIP https://github.com/ausbitbank/stable-diffusion-discord-bot/
  • cd stable-diffusion-discord-bot
  • mv .\config\config.json.example .\config\config.json
  • Edit config.json, you need at least a discordBotKey, adminID, to set a default model and check the cluster url
  • If you want to run the bot in docker, modify config.cluster.url to http://host.docker.internal:9090

Install custom invokeai nodes for advanced functionality

  • Enter your the nodes folder within your invokeai install cd invokeai\nodes
  • git clone https://github.com/gogurtenjoyer/nightmare-promptgen
  • git clone https://github.com/blessedcoolant/invoke_bria_rmbg
  • git clone https://github.com/mickr777/textfontimage
  • git clone https://github.com/helix4u/interrogate_node
  • Enter the "invokeai developers console" or enter the python venv for invoke and pip install clip-interrogator

Launch natively:

  • npm install
  • npm start

OR Launch with docker:

  • docker-compose up --build

Patches/Pull request are greatly appreciated!

If you have any questions you can find me (ausbitbank) in my discord here

You can test out the bot in any of the #artspam channels or by DM'ing

Star History

Star History Chart

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.