【Stable Diffusion教程】第1集保姆级安装教程 | 如何下载安装配置 | 基础概念全梳理!干货详解+资料分享!

9 Jun 202307:16

TLDRThis tutorial offers a comprehensive guide for installing and configuring Stable Diffusion, a powerful AI image generation software. It highlights the software's complexity and lack of a native UI, recommending the use of a third-party WEBUI interface developed by a tech expert. The guide emphasizes the need for a high-end GPU, preferably an Nvidia card with 8GB or more VRAM, and the use of CUDA. It outlines the steps for hardware upgrade, WEBUI setup, and model downloading from Civitai, concluding with a successful local setup and basic usage instructions.


  • 📚 Introduction to Stable Diffusion: The tutorial provides a comprehensive guide to installing and configuring Stable Diffusion, a powerful AI image generation software.
  • 🖥️ No Official UI: Stable Diffusion lacks an official computer interface, requiring users to rely on third-party interfaces for operation.
  • 🚀 Hardware Requirements: To run Stable Diffusion effectively, a graphics card with at least 8GB of VRAM and an Nvidia (N卡) 3050 or higher is recommended, along with CUDA support.
  • 🛠️ Installation Steps: The process involves upgrading hardware, downloading and installing a WEBUI interface, and obtaining models from Civitai.
  • 🔗 Github Reference: The tutorial instructs users to visit Github to understand the software's Python-based operation and to view the variety of images it can generate.
  • 📦 WEBUI Package: The script mentions a WEBUI package developed by a third-party developer, '秋叶大佬', which simplifies the installation and use of Stable Diffusion.
  • 🔄 Dependency Installation: The script outlines the installation of Microsoft's .NET 6.0 component as a prerequisite for running the software.
  • 💡 WEBUI Interface: The tutorial explains how to use the WEBUI interface, including starting the application and interacting with its features.
  • 🌐 Local Hosting: Once the WEBUI is launched, the software runs locally, and users can access it via a local address.
  • 🎨 Model Selection: Users can choose from various models to generate images with different styles and characteristics.
  • 🔍 Further Learning: The script mentions that subsequent courses will provide detailed instructions on using Civitai to download and utilize additional models.

Q & A

  • What is the main topic of this tutorial?

    -The main topic of this tutorial is the installation and configuration of Stable Diffusion on a local machine.

  • What is Stable Diffusion known for?

    -Stable Diffusion is known for being a powerful AI image generation software.

  • What is a significant challenge when configuring Stable Diffusion?

    -A significant challenge is that Stable Diffusion does not have an official computer interface or external UI provided by the developers.

  • What is the recommended hardware for running Stable Diffusion efficiently?

    -A recommended hardware setup includes an Nvidia (N卡) graphics card with at least 8GB of VRAM, preferably a model above the 3050 series, and the use of Nvidia's CUDA component.

  • How can users obtain a user interface for Stable Diffusion?

    -Users can obtain a user interface by using a third-party WEBUI developed by a technology enthusiast known as 秋叶大佬, which can be downloaded and installed locally.

  • What is the role of Civitai in the Stable Diffusion setup process?

    -Civitai (c站) is a platform where users can download various models to enhance the capabilities of Stable Diffusion, such as different artistic styles for image generation.

  • What is the approximate size of the Stable Diffusion package and models?

    -The base package of Stable Diffusion is around 9GB, and adding a few models can increase the size to over 50GB, with individual models being around 4GB each.

  • What is the first step in the installation process of the Stable Diffusion WEBUI?

    -The first step is to start the dependency installer, which is a Microsoft .NET 6.0 component.

  • How does the WEBUI startup process work?

    -After installing the dependencies, users can run the startup executable (A启动器.exe), which will automatically collect local environment information and launch the WEBUI interface.

  • What can users do once the Stable Diffusion WEBUI is successfully launched?

    -Once the WEBUI is launched, users can input prompts to generate images, choose models, and utilize the interface to create AI-generated content.

  • What is the next step recommended for users who want to expand their Stable Diffusion capabilities?

    -Users are encouraged to explore and download additional models from Civitai to diversify the styles and types of images they can generate with Stable Diffusion.



📚 Introduction to Stable Diffusion Installation

This paragraph introduces viewers to a comprehensive tutorial on installing and configuring Stable Diffusion, a powerful AI image generation software. It highlights the complexity of the software and the lack of an official user interface, suggesting the use of third-party interfaces like the one developed by 'Qiu Ye'. The importance of having a high-end graphics card, preferably an Nvidia 3050 or above with 8GB of VRAM, is emphasized due to the software's high resource consumption. The paragraph outlines the steps needed to use Stable Diffusion, including upgrading hardware, installing a web UI, and downloading models from Civitai.


🚀 Setting Up Stable Diffusion with Web UI and Models

The second paragraph guides viewers through the actual setup process of Stable Diffusion using the Web UI developed by 'Qiu Ye'. It explains how to download and install the Web UI package, the importance of having ample hard disk space due to the large size of the software and models, and the process of starting the dependencies and launching the Web UI. The paragraph concludes with a brief on how to operate the Web UI, including entering prompts, selecting models, and where to find and download additional models from Civitai. The goal is to have Stable Diffusion ready for use by the end of the tutorial.



💡Stable Diffusion

Stable Diffusion is an AI image generation software that has gained significant popularity for its ability to create high-quality images. In the video, it is described as a powerful tool but one that requires a complex setup process. The software lacks an official user interface, which necessitates the use of third-party interfaces for ease of use.

💡Installation and Configuration

Installation and Configuration refer to the process of setting up software on a computer so that it can function properly. In the context of the video, this involves a series of steps to get Stable Diffusion running on a local machine, including hardware upgrades, downloading necessary components, and setting up the WEBUI interface.

💡AI Image Generation

AI Image Generation is the process by which artificial intelligence algorithms create visual content, such as images or graphics, based on input data or prompts. In the video, Stable Diffusion is highlighted as a software that excels in this area, capable of producing精美的图片 (beautiful images) from textual descriptions.

💡Nvidia Graphics Card

An Nvidia Graphics Card, or 'N卡' as referred to in the video, is a hardware component designed by Nvidia Corporation that processes and outputs images to a display. For running Stable Diffusion effectively, the video recommends using an Nvidia graphics card with at least 8GB of VRAM, specifically suggesting models above the 3050 series.


CUDA, or Compute Unified Device Architecture, is a parallel computing platform and application programming interface model created by Nvidia. It allows developers to use Nvidia GPUs for general-purpose processing. In the context of the video, CUDA is a core component required for the efficient operation of Stable Diffusion, as it enables the software to leverage the GPU's processing power.


WEBUI stands for Web-based User Interface and refers to a graphical interface that is accessed through a web browser. In the video, it is mentioned as a third-party solution developed by a tech expert known as '秋叶大佬' to provide a user-friendly interface for Stable Diffusion, which lacks an official UI.


Civitai is a platform mentioned in the video where users can download various models for Stable Diffusion. These models are essential for generating different styles of images, as the software itself does not come with a direct capability to produce精美图片 (beautiful images) without the aid of these additional models.

💡Hardware Upgrade

Hardware Upgrade refers to the process of improving or replacing computer hardware components to meet the requirements of specific software or to enhance performance. In the video, a hardware upgrade is necessary for running Stable Diffusion, with a focus on acquiring an Nvidia graphics card with sufficient VRAM and ensuring adequate hard drive space.


In the context of AI image generation, a prompt is a text input that provides instructions or descriptions to the AI system, guiding it to generate specific types of images. The video discusses using prompts in Stable Diffusion to tell the AI what kind of image to create.

💡反向prompt (Negative Prompt)

A 反向prompt, or negative prompt, is a type of input in AI image generation that specifies what elements or features should not be included in the generated image. It is used to refine the output by excluding unwanted content.


In the context of AI image generation, models are datasets or algorithms that the AI uses to understand and produce images. The video discusses downloading models from Civitai to enhance the variety and quality of images that can be generated by Stable Diffusion.


Introduction to a comprehensive tutorial on installing and using Stable Diffusion.

Stable Diffusion's recognition as a powerful AI for image generation.

The complexity of configuring Stable Diffusion for use.

Lack of an official UI for Stable Diffusion, necessitating third-party solutions.

Introduction to third-party interfaces for easier Stable Diffusion usage.

Overview of Stable Diffusion's functionalities and its Python-based operation.

The need for high-performance NVIDIA graphics cards for optimal operation.

Importance of CUDA for leveraging NVIDIA GPUs with Stable Diffusion.

Step-by-step guide to using Stable Diffusion, starting with hardware upgrades.

Utilizing WEBUI for a user-friendly interface to Stable Diffusion.

Downloading diverse models from Civitai for high-quality image generation.

The process of setting up the environment and launching WEBUI.

Detailed explanation of launching Stable Diffusion and loading models.

Tips for managing disk space due to the large size of Stable Diffusion and its models.

Guide to expanding model selection for various artistic styles through Civitai.