How to Install and Run Stable Diffusion Web UI for AMDGPUs

Nov 26, 2022 | Educational

If you’re looking to bring the magic of image generation to your AMDGPU, you’re in the right place! The Stable Diffusion Web UI for AMDGPUs offers an easy-to-use web interface powered by the Gradio library. Below, we’ll guide you through the installation process and explain the various features this platform has to offer.

Understanding the Features

Before diving into the installation details, let’s explore some fantastic features that Stable Diffusion provides:

  • Original txt2img and img2img modes
  • One-click install and run script
  • Outpainting and Inpainting
  • Prompt Matrix and Attention Control for better detail in images
  • Multiple Embeddings with DeepDanbooru integration for anime prompts
  • Many Neural Network Upscalers like RealESRGAN and GFPGAN
  • Batch processing and Negative Prompting
  • Highres Fix for high-resolution images
  • Support for various types of GPUs including DirectML and ONNX Runtime

The Installation Process

Let’s look at how to set up this incredible tool on your AMDGPU or Windows machine:

For Windows 10/11 with AMD GPUs

  1. Download sd.webui.zip and extract its contents.
  2. Run update.bat.
  3. Run run.bat. This will kickstart the server!

Automatic Installation on Windows

  1. Install Python 3.10.6 and ensure to check “Add Python to PATH”.
  2. Install git.
  3. Clone the repository with: git clone https://github.com/lshqqytiger/stable-diffusion-webui-amdgpu.git.
  4. Run webui-user.bat as a regular user.

Automatic Installation on Linux

  1. Install dependencies using your package manager, for example:
  2. 
    # Debian-based
    sudo apt install wget git python3 python3-venv libgl1 libglib2.0-0
        
  3. Navigate to the preferred installation directory and execute:
    wget -q https://raw.githubusercontent.com/lshqqytiger/stable-diffusion-webui-amdgpu/master/webui.sh
  4. Run webui.sh.

Explaining Prompt Attention Control with an Analogy

Imagine you’re in a crowded room trying to find your friend. If you focus on their bright red jacket, it’s easy to spot them among the sea of neutral colors. Similarly, the attention feature of Stable Diffusion allows you to specify parts of your text prompt that the model should “pay more attention to.” For instance, specifying a phrase like “a man in a ((tuxedo))” directs the algorithm’s focus more heavily on “tuxedo,” ensuring that it captures intricate details when generating the image.

Troubleshooting Ideas

If you encounter issues after following the above steps, try the following troubleshooting tips:

  • Ensure Python and git are installed correctly.
  • Check that your graphics drivers are updated to the latest version.
  • Verify that the dependencies listed in the README file are installed.
  • If you experience crashes, try reducing the parameters used in generation.
  • For persistent issues, consider checking the community forums linked in the repository.

For more insights, updates, or to collaborate on AI development projects, stay connected with fxis.ai.

Conclusion

With these simple steps, you’re ready to unlock the full potential of the Stable Diffusion Web UI for AMDGPUs. At fxis.ai, we believe that such advancements are crucial for the future of AI, as they enable more comprehensive and effective solutions. Our team is continually exploring new methodologies to push the envelope in artificial intelligence, ensuring that our clients benefit from the latest technological innovations.

Stay Informed with the Newest F(x) Insights and Blogs

Tech News and Blog Highlights, Straight to Your Inbox