Skip to content

Commit

Permalink
網站更新
Browse files Browse the repository at this point in the history
  • Loading branch information
Ivon Huang committed May 14, 2023
1 parent 9ee3f5d commit 6097b0d
Show file tree
Hide file tree
Showing 14 changed files with 70 additions and 20 deletions.
2 changes: 1 addition & 1 deletion content.zh-cn/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ bookFlatSection: true
title: "欢迎"
---

这本中文使用手册是针对AUTOMATIC1111开发的Stable Diffusion WebUI所撰写,对应版本为v1.1.0。
这本中文使用手册是针对AUTOMATIC1111开发的Stable Diffusion WebUI所撰写,对应版本为**v1.2.1**

内容有:介绍如何将Stable Diffusion WebUI安装至您的电脑,以及讲解相关AI绘图功能用法,最后再介绍模型训练方式。

Expand Down
2 changes: 1 addition & 1 deletion content.zh-cn/extensions/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ bookFlatSection: false
bookCollapseSection: true
---

Stable Difussion WebUI除了基本的文生图、图生图、内补绘制之外,还能安装扩充功能(Extensions,或称「插件」),在绘图的时候集成其他AI技术,或是简化操作,生成更好的作品。
Stable Diffusion WebUI除了基本的文生图、图生图、内补绘制之外,还能安装扩充功能(Extensions,或称「插件」),在绘图的时候集成其他AI技术,或是简化操作,生成更好的作品。

这一章介绍设计给Stable Diffusion WebUI的扩充功能用法,并附上一些范例。

Expand Down
2 changes: 1 addition & 1 deletion content.zh-cn/extensions/controlnet.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ Lvmin Zhang是ControlNet原始程序的开发者,Mikubill则是开发扩充功

# 2. 各个模型的用途

ControlNet现有以下模型。
ControlNet现有以下模型,您可以按照需求只下载需要的模型

## Anime Lineart

Expand Down
2 changes: 1 addition & 1 deletion content.zh-cn/extensions/stable-gimpfusion.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,4 @@ ArtBIT开发的Stable-Gimpfusion能让你在GIMP修图时的图层调用Stable D

7. 进度条可从终端机查看,之后结果会添加至GIMP的图层。目前此扩充功能只支持填充整个图层。

![](../../../images/Screenshot_20230330_151918.webp)
![](../../../images/stable-gimpfusion-3.webp)
6 changes: 3 additions & 3 deletions content.zh-cn/features/extra-networks.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,11 @@ LoRA放到`stable-diffusion-webui\models\Lora`。
![](../../../images/extra-networks-6.webp)


# 3. 使用VAE
# 3. 安装与使用VAE

VAE (variational autoencoder)可以让算出来的图片色彩更漂亮。有些存盘点模型内置VAE,SD WebUI在生图时会自动侦测
VAE (variational autoencoder)可以让算出来的图片色彩更漂亮,改善图片颜色灰灰暗暗的问题。Hentai Diffusion这类模型内置VAE,SD WebUI在生图时会自动侦测并套用;Anything这类的模型要另外下载VAE;VAE的下载点通常跟模型下载页面放在一起

如果要使用VAE,下载模型后,将其放到`stable-diffusion-webui\models\VAE`文件夹。
如果要使用VAE,下载VAE模型后,将其放到`stable-diffusion-webui/models/VAE`文件夹。

接着点击Settings → Stabe Diffusion → SD VAE,选取要使用的VAE,再点击Apply Settings,此后生图就会一律使用指定的VAE。

Expand Down
2 changes: 1 addition & 1 deletion content.zh-cn/features/text-to-image.md
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ Stable Diffusion WebUI正上方可看到现在使用的是哪个模型。切换

![](../../../images/text-to-image-5.webp)

2. Sampling Methods建议先试试最快的「UniPC」,其次是「Euler a」、「DPM++ 2M Karras」。Sampling Steps设20,`Width`x`Height`设置为512x512。
2. Sampling Methods建议先试试最快的「UniPC」,其次是「Euler a」、「DPM++ 2M Karras」。Sampling Steps设20,`Width`x`Height`设置为512x512。

![](../../../images/text-to-image-6.webp)

Expand Down
29 changes: 27 additions & 2 deletions content.zh-cn/installation/errors.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ weight: 21

有时除了Stable Diffusion WebUI本身问题外,也有可能是你安装的扩充功能出错导致程序无法启动。

请尝试删除`stable-diffusion-webui\extensions`下的某个新安装的扩充功能文件夹,再尝试启动SD WebUI。
请尝试删除`stable-diffusion-webui\extensions`下的某个新安装的扩充功能文件夹,或是将整个extensions文件夹先移动到其他位置,再尝试启动SD WebUI。

也可以尝试将Stable Diffusion WebUI主程序[更新到最新版本](../features/how-to-update/)

Expand All @@ -33,7 +33,7 @@ weight: 21

显卡的VRAM不足。Stable Diffusion WebUI的显卡VRAM最低要求为4GB,要无压力的玩建议8GB以上。

打开`webui-user.bat`,在`COMMANDLINE_ARGS`后面加入`--mdevram``--lowvram`参数,降低VRAM使用量。如果还是在算图时出现此消息,建议降低算图的分辨率,或是买张更好的显卡,或是改用[Google Colab](https://ivonblog.com/posts/google-colab-stable-diffusion-webui/)
打开`webui-user.bat`,在`COMMANDLINE_ARGS`后面加入`--mdevram``--lowvram`参数,降低VRAM使用量。如果还是在生图时出现此消息,建议降低生图的分辨率,或是买张更好的显卡,或是改用[Google Colab](https://ivonblog.com/posts/google-colab-stable-diffusion-webui/)


# No module named pip
Expand Down Expand Up @@ -142,3 +142,28 @@ weight: 21
如果运行`webui-user.sh`出现此错误,则编辑`webui-user.sh`,将`install_dir`后面改成`$(pwd)`

如果是在Google Colab遇到此错误,代表程序没装成功,请看一下终端机输出,检查前面的指令是否有哪步运行出错。


# Couldn't launch python, exit code 9009

Windows用户请重装Python 3.10.6,并确认有在安装界面勾选`Add Python to PATH`


# libtcmalloc.so.4 python3: version `GLIBCXX_3.4.30' not found (required by /usr/lib/libtcmalloc.so.4)

可能是暂时性的bug。

启动conda虚拟环境:`conda activate sdwebui`,然后安装gcc:`conda install -c conda-forge gcc`,接着退出虚拟环境:`conda deactivate`,再尝试启动WebUI。


# PyTorch has CUDA Version=11.7 and torchvision has CUDA Version=11.8. Please reinstall the torchvision that matches your PyTorch install.

可能是暂时性的bug。

如果有使用Anaconda,启动conda虚拟环境:`conda activate sdwebui && source venv/bin/activate`

安装旧版本PyTorch:`pip uninstall torch && pip install xformers==0.0.16rc425 torch==1.13.1+cu117 torchvision==0.14.1+cu117 --extra-index-url https://download.pytorch.org/whl/cu117`

接着退出虚拟环境:`deactivate && conda deactivate`

再尝试启动WebUI。
2 changes: 1 addition & 1 deletion content.zh-tw/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ bookFlatSection: true
title: "歡迎"
---

這本中文使用手冊是針對AUTOMATIC1111開發的Stable Diffusion WebUI所撰寫,對應版本為v1.1.0。
這本中文使用手冊是針對AUTOMATIC1111開發的Stable Diffusion WebUI所撰寫,對應版本為**v1.2.1**

內容有:介紹如何將Stable Diffusion WebUI安裝至您的電腦,以及講解相關AI繪圖功能用法,最後再介紹模型訓練方式。

Expand Down
2 changes: 1 addition & 1 deletion content.zh-tw/extensions/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ bookFlatSection: false
bookCollapseSection: true
---

Stable Difussion WebUI除了基本的文生圖、圖生圖、內補繪製之外,還能安裝擴充功能(Extensions,或稱「插件」),在繪圖的時候整合其他AI技術,或是簡化操作,生成更好的作品。
Stable Diffusion WebUI除了基本的文生圖、圖生圖、內補繪製之外,還能安裝擴充功能(Extensions,或稱「插件」),在繪圖的時候整合其他AI技術,或是簡化操作,生成更好的作品。

這一章介紹設計給Stable Diffusion WebUI的擴充功能用法,並附上一些範例。

Expand Down
2 changes: 1 addition & 1 deletion content.zh-tw/extensions/controlnet.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ Lvmin Zhang是ControlNet原始程式的開發者,Mikubill則是開發擴充功

# 2. 各個模型的用途

ControlNet現有以下模型。
ControlNet現有以下模型,您可以按照需求只下載需要的模型

## Anime Lineart

Expand Down
2 changes: 1 addition & 1 deletion content.zh-tw/extensions/stable-gimpfusion.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,4 @@ ArtBIT開發的Stable-Gimpfusion能讓你在GIMP修圖時的圖層調用Stable D

7. 進度條可從終端機查看,之後結果會新增至GIMP的圖層。目前此擴充功能只支援填充整個圖層。

![](../../images/Screenshot_20230330_151918.webp)
![](../../images/stable-gimpfusion-3.webp)
6 changes: 3 additions & 3 deletions content.zh-tw/features/extra-networks.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,11 @@ LoRA放到`stable-diffusion-webui\models\Lora`。
![](../../images/extra-networks-6.webp)


# 3. 使用VAE
# 3. 安裝與使用VAE

VAE (variational autoencoder)可以讓算出來的圖片色彩更漂亮。有些存檔點模型內建VAE,SD WebUI在生圖時會自動偵測
VAE (variational autoencoder)可以讓算出來的圖片色彩更漂亮,改善圖片顏色灰灰暗暗的問題。Hentai Diffusion這類模型內建VAE,SD WebUI在生圖時會自動偵測並套用;Anything這類的模型要另外下載VAE;VAE的下載點通常跟模型下載頁面放在一起

如果要使用VAE,下載模型後,將其放到`stable-diffusion-webui\models\VAE`資料夾。
如果要使用VAE,下載VAE模型後,將其放到`stable-diffusion-webui/models/VAE`資料夾。

接著點選Settings → Stabe Diffusion → SD VAE,選取要使用的VAE,再點選Apply Settings,此後生圖就會一律使用指定的VAE。

Expand Down
2 changes: 1 addition & 1 deletion content.zh-tw/features/text-to-image.md
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ Stable Diffusion WebUI正上方可看到現在使用的是哪個模型。切換

![](../../images/text-to-image-5.webp)

2. Sampling Methods建議先試試最快的「UniPC」,其次是「Euler a」、「DPM++ 2M Karras」。Sampling Steps設20,`Width`x`Height`設定為512x512。
2. Sampling Methods建議先試試最快的「UniPC」,其次是「Euler a」、「DPM++ 2M Karras」。Sampling Steps設20,`Width`x`Height`設定為512x512。

![](../../images/text-to-image-6.webp)

Expand Down
29 changes: 27 additions & 2 deletions content.zh-tw/installation/errors.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ weight: 21

有時除了Stable Diffusion WebUI本身問題外,也有可能是你安裝的擴充功能出錯導致程式無法啟動。

請嘗試刪除`stable-diffusion-webui\extensions`下的某個新安裝的擴充功能資料夾,再嘗試啟動SD WebUI。
請嘗試刪除`stable-diffusion-webui\extensions`下的某個新安裝的擴充功能資料夾,或是將整個extensions資料夾先移動到其他位置,再嘗試啟動SD WebUI。

也可以嘗試將Stable Diffusion WebUI主程式[更新到最新版本](../features/how-to-update/)

Expand All @@ -33,7 +33,7 @@ weight: 21

顯示卡的VRAM不足。Stable Diffusion WebUI的顯示卡VRAM最低要求為4GB,要無壓力的玩建議8GB以上。

開啟`webui-user.bat`,在`COMMANDLINE_ARGS`後面加入`--mdevram``--lowvram`引數,降低VRAM使用量。如果還是在算圖時出現此訊息,建議降低算圖的解析度,或是買張更好的顯示卡,或是改用[Google Colab](https://ivonblog.com/posts/google-colab-stable-diffusion-webui/)
開啟`webui-user.bat`,在`COMMANDLINE_ARGS`後面加入`--mdevram``--lowvram`引數,降低VRAM使用量。如果還是在生圖時出現此訊息,建議降低生圖的解析度,或是買張更好的顯示卡,或是改用[Google Colab](https://ivonblog.com/posts/google-colab-stable-diffusion-webui/)


# No module named pip
Expand Down Expand Up @@ -142,3 +142,28 @@ weight: 21
如果執行`webui-user.sh`出現此錯誤,則編輯`webui-user.sh`,將`install_dir`後面改成`$(pwd)`

如果是在Google Colab遇到此錯誤,代表程式沒裝成功,請看一下終端機輸出,檢查前面的指令是否有哪步執行出錯。


# Couldn't launch python, exit code 9009

Windows用戶請重裝Python 3.10.6,並確認有在安裝界面勾選`Add Python to PATH`


# libtcmalloc.so.4 python3: version `GLIBCXX_3.4.30' not found (required by /usr/lib/libtcmalloc.so.4)

可能是暫時性的bug。

啟動conda虛擬環境:`conda activate sdwebui`,然後安裝gcc:`conda install -c conda-forge gcc`,接著退出虛擬環境:`conda deactivate`,再嘗試啟動WebUI。


# PyTorch has CUDA Version=11.7 and torchvision has CUDA Version=11.8. Please reinstall the torchvision that matches your PyTorch install.

可能是暫時性的bug。

如果有使用Anaconda,啟動conda虛擬環境:`conda activate sdwebui && source venv/bin/activate`

安裝舊版本PyTorch:`pip uninstall torch && pip install xformers==0.0.16rc425 torch==1.13.1+cu117 torchvision==0.14.1+cu117 --extra-index-url https://download.pytorch.org/whl/cu117`

接著退出虛擬環境:`deactivate && conda deactivate`

再嘗試啟動WebUI。

0 comments on commit 6097b0d

Please sign in to comment.