LibreChat/docs/features/plugins/stable_diffusion.md
bsu3338 fdc5265f48
MkDocs for Material (#545)
* Create mkdocs.yaml

* Create mkdocs.yml

* Update mkdocs.yml

* Update mkdocs.yml

* Update mkdocs.yml

* Update mkdocs.yml

* Update mkdocs.yml

* Update README.md

* Update coding_conventions.md

* Update documentation_guidelines.md

* Update testing.md

* Update heroku.md

* Update hetzner_ubuntu.md

* Update google_search.md

* Update introduction.md

* Update make_your_own.md

* Update stable_diffusion.md

* Update wolfram.md

* Update proxy.md

* Update user_auth_system.md

* Update bing_jailbreak_info.md

* Update breaking_changes.md

* Update multilingual_information.md

* Update project_origin.md

* Update tech_stack.md

* Update apis_and_tokens.md

* Update docker_install.md

* Update linux_install.md

* Update mac_install.md

* Update windows_install.md

* Update mkdocs.yml

* Update mkdocs.yml

* Update documentation_guidelines.md

* Add files via upload

* Create temp.txt

* Add files via upload

* Delete logo.png

* Create index.md

* Update mkdocs.yml

* Update mkdocs.yml

* Delete temp.txt

* Update README.md

* Update README.md

---------

Co-authored-by: Danny Avila <110412045+danny-avila@users.noreply.github.com>
2023-06-24 23:00:10 -04:00

2.5 KiB

Stable Diffusion Plugin

To use Stable Diffusion with this project, you will either need to download and install stable-diffusion-webui or, for a dockerized deployment, you can also use stable-diffusion-webui-docker

With the docker deployment you can skip step 2 and step 3, use the setup instructions from their repository instead.

  • Note: you need a compatible GPU ("CPU-only" is possible but very slow). Nvidia is recommended, but there is no clear resource on incompatible GPUs. Any decent GPU should work.

1. Follow download and installation instructions from stable-diffusion-webui readme

2. Edit your run script settings

Windows

  • Edit your webui-user.bat file by adding the following line before the call command:

  • set COMMANDLINE_ARGS=--api

    • Your .bat file should like this with all other settings default
    @echo off
    
    set PYTHON=
    set GIT=
    set VENV_DIR=
    set COMMANDLINE_ARGS=--api
    
    call webui.bat
    

Others (not tested but should work)

  • Edit your webui-user.sh file by adding the following line:

  • export COMMANDLINE_ARGS="--api"

    • Your .sh file should like this with all other settings default
    
    export COMMANDLINE_ARGS="--api"
    
    #!/bin/bash
    #########################################################
    # Uncomment and change the variables below to your need:#
    #########################################################
    
    # ...rest
    

3. Run Stable Diffusion (either .sh or .bat file according to your operating system)

4. In the app, select the plugins endpoint, open the plugins store, and install Stable Diffusion

Note: The default port for Gradio is 7860. If you changed it, please update the value accordingly.

Docker Install

  • Use SD_WEBUI_URL=http://host.docker.internal:7860 in the .env file
  • Or http://host.docker.internal:7860 from the webui

Local Install

  • Use SD_WEBUI_URL=http://127.0.0.1:7860 in the .env file
  • Or http://127.0.0.1:7860 from the webui

image image

5. Select the plugin and enjoy!

image