Stable Diffusion 零基礎新手入門!

Share this post on:
內容目錄

基礎安裝

Step1. 安裝 Python 3.10.6
   需勾選 Add Python 3.10 to PATH
Step2. 安裝 Git
Step3. 安裝 Automatic1111
  • 使用Git安裝:
    先到要放 Stable Diffusion 的資料夾內 → 右鍵 → 使用終端機開啟

    git clone https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
  • 點擊 webui-user.py 繼續安裝
    檔案位置: \stable-diffusion-webui\webui-user.py

安裝 Error 排除

RuntimeError: Torch is not able to use GPU; add --skip-torch-cuda-test to COMMANDLINE_ARGS variable to disable this check
(沒有GPU)

  • 原始 webui-user.bat 檔案內容

    @echo off
    set PYTHON=
    set GIT=
    set VENV_DIR=
    set COMMANDLINE_ARGS=
    call webui.bat
  • 修改後的 webui-user.bat 檔案內容

    @echo off
    set PYTHON=
    set GIT=
    set VENV_DIR=
    set COMMANDLINE_ARGS=--skip-torch-cuda-test
    call webui.bat

Runtime Error: "addmm_implcup" not implemented for 'Half'
( 安裝完啟動web介面時出現錯誤訊息, 下參數修改,可以解決無獨立顯卡、無Nvidia顯卡的用戶)

教學影片 - PAPAYA電腦教室

Part 1 - 安裝與基本設置 (Windows / Mac)

Part 2 - 提示詞技巧 & 算圖參數簡介

Part 3 - 社群繪圖模型 & ControlNet 擴充功能