Sign inSign up

r0dr1g0m/forge-webui

By r0dr1g0m

•Updated about 2 years ago

Forge-webUI for Flux1

Image
Data science
0

842

r0dr1g0m/forge-webui repository overview

⁠Stable Diffusion WebUI Forge

This guide will walk you through setting up and running the Stable Diffusion WebUI Forge using Docker.

⁠Prerequisites

  • Docker and Docker Compose installed on your machine.
  • A GPU compatible with NVIDIA CUDA (if you want to use GPU acceleration).

⁠Step 1: Clone the Repository

First, create a directory for the project and clone the repository.

mkdir stable-diffusion-webui-forge
cd stable-diffusion-webui-forge
git clone https://github.com/lllyasviel/stable-diffusion-webui-forge.git .
git checkout db6448d

⁠Step 2: Create the Docker Compose File

In the project directory, create a docker-compose.yml file with the following content:

services:
  stable-diffusion-webui:
    runtime: nvidia  # Specifies that the container will use the GPU
    image: r0dr1g0m/forge-webui
    ports:
      - "7860:7860"  # Maps port 7860 of the container to port 7860 on the host
    environment:
      - NVIDIA_VISIBLE_DEVICES=all  # Makes all GPUs visible inside the container
    volumes:
      - ./:/stable-diffusion-webui  # Maps the current directory to /stable-diffusion-webui in the container
      - home:/root  # Maps the named volume "home" to the /root directory in the container
    command: python3 launch.py --listen  # Command to run when the container starts

volumes:
  home:  # Defines a named volume called "home"

⁠Step 3: Start the Container

Run the following command to start the container:

docker compose up -d

This command will download the necessary images, set up the container, and run the Stable Diffusion WebUI Forge.

⁠Step 4: Access the WebUI

Once the container is up and running, you can access the Stable Diffusion WebUI by navigating to:

http://localhost:7860

⁠Additional Information

For more details on how to obtain the model and other advanced configurations, please visit the official Stable Diffusion WebUI Forge repository⁠.

Tag summary

Content type

Image

Digest

sha256:0112975d4…

Size

8.6 GB

Last updated

about 2 years ago

docker pull r0dr1g0m/forge-webui