• Stars
    star
    411
  • Rank 105,247 (Top 3 %)
  • Language
    Go
  • License
    GNU Affero Genera...
  • Created over 1 year ago
  • Updated 8 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

SD-WEBUI-DISCORD is a Discord bot developed in Go language for stable-diffusion-webui. It utilizes the sd-webui-go to invoke the sd-webui API and supports cluster deployment of multiple sd-webui nodes with automatic scheduling and allocation.
sd-webui-discord

SD-WEBUI-DISCORD

Support For Clustered Stable Diffusion WebUi Discord Bot

Mult-Language README

Introduction

SD-WEBUI-DISCORD is a Discord bot developed in Go language for stable-diffusion-webui. It utilizes the sd-webui-go to invoke the sd-webui API and supports cluster deployment of multiple sd-webui nodes with automatic scheduling and allocation. At the same time, there is also the sd-webui-discord-ex, which is an extension on the stable-diffusion-webui that you can install and use directly. It will automatically update every time you restart SD webui.

Screenshots

First

News

2023-09-24: Support multi image generate in txt2img command

2023-09-23:

  • Support Retry and Delete in txt2img command

2023-09-22:

  • Support setting_ui command
  • Better txt2img response ui,thanks for venetanji support that! #5
  • Optimize command add when bot start,thanks for venetanji support that! #5

2023-09-10: Support local language

2023-09-05: Support User Center on Windows

2023-09-04: Support Image to Image

2023-08-31: Support User Center

2023-08-27:

  • Support txt2img choice model checkpoint

  • Support upload image with attachment: deoldify png_info roop_image commands

    See Image

    example

2023-08-26: Support Setting default sd-webui options

2023-08-23: Support ControlNet for txt2img command

  • By using the controlnet_detect command to obtain the parameters of ControlNet and filling them into the controlnet_args parameter of the txt2img command, you can use ControlNet in txt2img.

2023-08-22: Support txt2img command

2023-08-22: Support roop command

2023-08-20: Support controlnet_detect command

Features

  • Local language support.
  • Global sd-webui default options.
  • Supports multi-node (sd-webui) deployment, distributed cluster queue with automatic scheduling.
  • User Center
    • Set user options with ui.
    • User Center can be freely enabled.
    • Customizable database types, currently supporting MySQL and SQLite.
    • Users can set their own default options. If not specified when generating images, the user's configured options will be used by default, such as image dimensions, cfg, steps, etc. For more details, please refer to the User Center (wiki).
    • Supports user registration.
  • ControlNet Preview
    • Supports specifying module and model through selection, eliminating the need for manual input.
    • Allows previewing preprocessing effects and obtaining args simultaneously (used for user-generated txt2img).
  • Text to Image
    • Support SDXL's refiner!
    • Supports user-defined default options from the User Center.
    • Enables specifying model, sampler, and other optional parameters through selection, eliminating the need for manual input.
    • Supports using parameters from "ControlNet Preview" directly.
  • Image to Image
    • Allows uploading images through an image control, rather than using URLs.
    • Supports all operations of img2img in sd-webui!
  • Roop Face Swap
    • Allows uploading images through an image control, rather than using URLs.
    • Supports specifying source and target through selection, eliminating the need for manual input.
    • Supports custom face rendering algorithms (GFPGAN, CodeFormer), as well as weights.
  • Deoldify Colorization
    • Allows uploading images through an image control, rather than using URLs.
    • Currently the best photo colorization model.
  • Segment-Anything
    • Allows uploading images through an image control, rather than using URLs.
    • Supports image segmentation based on natural language descriptions (DION+SAM).
    • Enables specifying DION and SAM models through selection, eliminating the need for manual input.
  • Background Removal
    • Allows uploading images through an image control, rather than using URLs.
    • Supports commonly used background removal algorithms.
    • Supports returning the mask.
  • Extra Single
    • Allows uploading images through an image control, rather than using URLs.
    • Supports facial repair.
    • Supports super-resolution, with models available for direct selection without manual input.
  • Png Info
    • Allows uploading images through an image control, rather than using URLs.
    • Supports retrieving parameters of images generated by sd-webui.

Usage

The command is still under active development, and there are two ways to experience sd-webui-discord:

  1. Join our Discord Server where you can try out the latest features and contribute by submitting issues and pull requests.
  2. Self-deploy it to have your own sd-webui-discord instance.

Discord Server

Discord

Installation

You need to install the following extensions on the SD webui:

sd-webui-segment-anything

sd-weubi-deoldify

stable-diffusion-webui-rembg

sd-webui-roop

sd-webui-controlnet


1.Download the latest release from here.

2.Create a bot account on Discord and get the token. How To Create Discord App.

3.Configuration and Startup

tar -zxvf sd-webui-discord-release-v*.tar.gz # unzip the release package

cd sd-webui-discord-release-v*/release/

Edit the config.json file and fill in the token and other information.

{
    "sd_webui":{
        "servers":[
            {
                "name":"webui-1",
                "host":"127.0.0.1:7860",
                "max_concurrent":5,
                "max_queue":100,
                "max_vram":"20G"
            }
        ]
    },
    "discord":{
        "token":"<your token here>",
        "server_id":"<your servers id here if empty all servers>"
    }
}

If you want set default value with sd-webui

{
    "sd_webui":{
        "servers":[...],
        "default_setting": {
            "cfg_scale": 8,
            "negative_prompt": "bad,text,watermask",
            "height":1024,
            "width":1024,
            "steps":32,
            "sampler":"Euler",
            "sd_model_checkpoint":"sd_xl_base_1.0.safetensors [31e35c80fc]"
        }
    }
    ...
}

If you want to enable the User Center

{
  ...
  "user_center":{
        "enable":false,
        "db_config":{
            "type":"sqlite", // support mysql and sqlite
            "dsn":"./user_center.db"
        }
  }
  ...
}

If you want disable return info in img2img and txt2img

{
  ...
  "disable_return_gen_info":true
  ...
}

Start The Bot

# if you can't connect discord,you need use proxy and run this command:
# export https_proxy=http://127.0.0.1:8888;export http_proxy=http://127.0.0.1:8888;
./sd-webui-discord

Participating

This is an ongoing project, and if you are interested in contributing, you can join our Discord Server. We welcome any feedback or suggestions, so feel free to submit an issue.

More Repositories

1

GoWxDump

SharpWxDump的Go语言版。微信客户端取证,获取信息(微信号、手机号、昵称),微信聊天记录分析(Top N聊天的人、统计聊天最频繁的好友排行、关键词列表搜索等)
Go
1,319
star
2

DRat

去中心化远程控制工具(Decentralized Remote Administration Tool),通过ENS实现了配置文件分发的去中心化,通过Telegram实现了服务端的去中心化
Go
689
star
3

sd-webui-deoldify

DeOldify for Stable Diffusion WebUI:This is an extension for StableDiffusion's AUTOMATIC1111 web-ui that allows colorize of old photos and old video. It is based on deoldify.
Python
574
star
4

LGS-Helper

Help you easily run games on SteamDeck, Ubuntu Linux distributions, including but not limited to: localization, unlocking DLC, etc.
Go
413
star
5

sd-webui-go

This is a Go language version of the SDK based on stable-diffusion-webui. In your code, you can directly use the API interfaces of stable-diffusion-webui through object-oriented operations, instead of dealing with cumbersome JSON. Support extensions API !
Go
356
star
6

Proxmark3-Reader

Use Proxmark3 to read different NFC Tag
Python
36
star
7

sd-webui-discord-ex

This is an extension of SD-WEBUI-DISCORD on the Stable Diffusion WebUI, which supports distributed deployment of SD node's Stable Diffusion WebUi Discord robots. The command usage on Discord can refer to the SD-WEBUI-DISCORD project.
Python
25
star
8

sd-webui-ocr

Python
12
star
9

Hunter-SDK

奇安信 Hunter SDK
Python
5
star
10

CodeWebRunner

以WebApi的方式运行Python代码,这将是AiMediaService的一部分,为了实现一个可以整合ai能力PaaS化开发落地应用的平台
Python
4
star
11

DRatConfig

DRat配置上传工具
Go
3
star
12

gocron-sdk

gocron-sdk Updated 1 minute ago gocron是一个功能强大的任务调度引擎,由于作者开放的api有限本项目基于jwt的认证编写了sdk,可以更高效的使用gocron接口
Python
2
star
13

Sangfor-AF-SDK

深信服 AF 防火墙 SDK
Python
1
star
14

DL-VerCode-Recognition

基于keras_tensorflow的应用级验证码识别程序
1
star
15

CVE-2030-19901

哈哈
Python
1
star
16

Keras_OcrVerCode

基于CNN的验证码识别
Python
1
star
17

lgscore

The underlying library of LGS-Helper includes some utility methods and the local interface library of steam, lutris, epic and other game platforms under the linux platform is used to obtain the game's pfx, installation directory, id, proton path, etc.
Go
1
star