Introducing our new CEO Don Johnson - Read More

eisai/stable-diffusion-nvidia

By eisai

Updated 8 months ago

Stable-diffusion-webui for Windows Container with built-in CUDA support.

Image
Machine Learning & AI
2

81

Before started

Only Windows build version 20348 or newer are supported (Win11, Server2022)
Hyper-V or CUDA toolkits are NOT required

Build NumberImage
22621.xeisai/stable-diffusion-nvidia:ltsc2022
20348.xeisai/stable-diffusion-nvidia:ltsc2022

the size of the Windows container is kind of huge ~15GB

How to run

(Persistence) Create a folder:

STABLE-DIFFUSION
├───data
└───docker-compose.yaml

Docker CLI:

docker run --rm -d --isolation process `
   -p "7860:7860" `
   -v '<path to data folder>:C:\app\udata' `
   --device=class/5B45201D-F2F2-4F3B-85BB-30FF1F953599 `
   eisai/stable-diffusion-nvidia

Docker compose (Recommended):

version: "3.8"

networks:
  stable_diffusion:

services:
  stable_diffusion:
    container_name: stable_diffusion
    image: eisai/stable-diffusion-nvidia
    isolation: process
    networks:
      - stable_diffusion
    cpu_count: 8
    ports:
      - "7860:7860"
    environment:
      - ARGS=--update-check --xformers     # See https://github.com/AUTOMATIC1111/stable-diffusion-webui/wiki/Command-Line-Arguments-and-Settings
    volumes:
      - '.\data:C:\data'
    devices:
      - class/5B45201D-F2F2-4F3B-85BB-30FF1F953599     # Passing GPU, This GUID is fixed

Known issues

FileNotFoundError: [Errno 2] No such file or directory

Try empty the output folder then recreate the container.

Credits

AUTOMATIC1111/stable-diffusion-webui
https://github.com/AUTOMATIC1111/stable-diffusion-webui

Install an ultralight docker engine on Windows
https://eisaichen.com/?p=76

Docker Pull Command

docker pull eisai/stable-diffusion-nvidia