Aloereed / stable-diffusion-webui-arc-directml

A proven usable Stable diffusion webui project on Intel Arc GPU with DirectML
GNU Affero General Public License v3.0
66 stars 9 forks source link

Stable Diffusion web UI for Intel Arc with DirectML

Forked from lshqqytiger/stable-diffusion-webui-directml. The code was fine-tuned only for the errors reported for the Intel Arc GPU. 中文自述文件在这里.

For Stable Diffusion in Linux/WSL using IPEX (Intel Extensions for Pytorch) see here. Aloereed/stable-diffusion-webui-ipex-arc . This approach uses less video memory, generates larger images, and reduces the whine of Intel graphics cards during processing.

This repository is just to document a version of webui that is verified to be available for the Intel Arc GPU (and very, very minor code tweaks). To get the latest webui features, you can check here directly.

Requirements

If you are using an nVidia GPU, you can go here. AMD GPU here.

Test Enviroment

A browser interface based on Gradio library for Stable Diffusion.

Preview

Usage

Issues

Features

Detailed feature showcase with images:

Installation and Running

Make sure the required dependencies are met and follow the instructions available for both NVidia (recommended) and AMD/Intel GPUs.

Alternatively, use online services (like Google Colab):

Automatic Installation on Windows

  1. Install Python 3.10.6, checking "Add Python to PATH"
  2. Install git.
  3. Download the stable-diffusion-webui repository, for example by running git clone https://github.com/AUTOMATIC1111/stable-diffusion-webui.git.
  4. Place stable diffusion checkpoint (model.ckpt) in the models/Stable-diffusion directory (see dependencies for where to get it).
  5. Run webui-user.bat from Windows Explorer as normal, non-administrator, user.

Automatic Installation on Linux

  1. Install the dependencies:
    # Debian-based:
    sudo apt install wget git python3 python3-venv
    # Red Hat-based:
    sudo dnf install wget git python3
    # Arch-based:
    sudo pacman -S wget git python3
  2. To install in /home/$(whoami)/stable-diffusion-webui/, run:
    bash <(wget -qO- https://raw.githubusercontent.com/AUTOMATIC1111/stable-diffusion-webui/master/webui.sh)

Installation on Apple Silicon

Find the instructions here.

Contributing

Here's how to add code to this repo: Contributing

Documentation

The documentation was moved from this README over to the project's wiki.

Credits

Licenses for borrowed code can be found in Settings -> Licenses screen, and also in html/licenses.html file.