GithubHelp home page GithubHelp logo

coalescentdivide / imaginepy-controlnet-discord-bot Goto Github PK

View Code? Open in Web Editor NEW
4.0 2.0 1.0 90 KB

uses imaginepy controlnet to remix images as a discord bot. free and no hardware required

License: GNU General Public License v3.0

Python 100.00%
ai controlnet discord-bot imaginepy img2img stable-diffusion

imaginepy-controlnet-discord-bot's Introduction

imaginepy-controlnet-discord-bot

Rremix images as a discord bot. No hardware required. utilizes a slightly modified version of Imaginepy

Prerequisites

Python (3.9 or 3.10 is recommended)

Discord Bot setup

2. Go to the Bot tab and click "Add Bot" and give it a name
3. Click "Reset Token" to get your Discord Bot Token for the .env file.
4. Disable "Public Bot".
5. Under "Privileged Gateway Intents" enable "Presence Intent", "Server Member Intent" and "Message Content Intent".
6. Go to the OAuth2 tab and select URL generator. Under Scopes check bot, then in the permissions check Send Messages, Embed Links and Read Message History. (You can also choose these permissions for specific channels only later.) Use the generated URL to invite the bot to your server.

Installation

  1. In a terminal window, clone the repository

    git clone https://github.com/coalescentdivide/imaginepy-controlnet-discord-bot.git
    

    and navigate to the directory:

    cd imaginepy-controlnet-discord-bot
    
  2. Create a virtual environment:

    python -m venv venv
    
  3. Activate the environment:

    • On Windows:

      venv\Scripts\activate
      
    • On macOS/Linux:

      source venv/bin/activate
      
  4. Install the required packages:

    pip install -r requirements.txt
    
  5. Copy and rename .env.example to .env and add your Discord bot token

  6. Run the main.py script:

    python main.py
    

Usage

To use the bot, you need an image to start with. You can either attach an image to a message or reply to a message containing an image. Then, type the !remix command followed by your prompt:

!remix your prompt

Optional Parameters for the !remix command:

You can customize the output of the !remix command by adding optional parameters. Here's a list of available parameters and their usage:

1. Scale (range: 0.0-16.0)

Adjust the scale of the output by adding --scale followed by a number between 0.0 and 16.0.

Example:

!remix your prompt --scale 8

2. Negative prompt

You can choose a negative prompt, but it is optional. A default negative prompt is provided

3. Control Model

Choose a control model to influence the output. The available control models are depth, scribble, pose, and canny. Add --control followed by the desired control model.

4. Style

Apply a specific style to the output by using the --style parameter followed by a style name. To view the full list of available styles, type !styles.

5. Seed

The seed used for the generation.

Example:

image

imaginepy-controlnet-discord-bot's People

Contributors

coalescentdivide avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

noob02lol

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.