---
# System prepended metadata

title: Stable Diffusion 使用交流

---

# Stable Diffusion 使用交流

# 安裝方面
1.空罐王教學:
{%youtube hOTKiuA61v0 %}
2.網頁教學:
![](https://i.imgur.com/lki2l0U.png)
https://ivonblog.com/posts/windows-stable-diffusion-webui/#:~:text=%E5%AE%83%E6%9C%83%E9%96%8B%E5%A7%8B%E5%AE%89%E8%A3%9D%E4%BE%9D%E8%B3%B4,%E4%BA%8C%E4%B8%8B%E5%B0%B1%E5%8F%AF%E4%BB%A5%E4%BA%86%E3%80%82

[附註]
必備安裝:[Git](https://gitforwindows.org/)和[Python 3.10.6](https://www.python.org/downloads/release/python-3106/)

# 網站分享
模型網站:
https://civitai.com/
![](https://i.imgur.com/vYBvxhs.png)




# 共用分享區
[[台北美術中心分享區嚴禁外流]](https://hackmd.io/@kyMb6sQ4Rn-EGPrPbm0-rg/Sy-Nzj6Io#TWAC-AI%E6%87%89%E7%94%A8)

# Web-UI模型縮圖方式[by 逸文]
自動抓模型對應縮圖方式:[補充20230306by/謙信]
![](https://i.imgur.com/uM8wj3S.png)
再網址區貼上:
https://github.com/civitai/sd_civitai_extension.git
安裝
然後等程式跑完
![](https://i.imgur.com/vCMFhO9.png)
在這個介面會顯示已安裝的選項
![](https://i.imgur.com/HowF61K.png)
回到介面就可以看到縮圖都抓好了
![](https://i.imgur.com/uoNns4l.jpg)


在放置模型的資料夾置入與模型同名的png檔
![](https://i.imgur.com/r3Xe7kf.png)
就可以在這分頁看到模型縮圖
![](https://i.imgur.com/HoMYM7H.png)


# CharTurner 研究[by 謙信2023/3/7]
![](https://i.imgur.com/G9UREoN.jpg)

可以轉3視圖 或更多視圖的模型

使用方式:
須配合ControlNet 的 openpose 使用
放一張多視圖做為參考,其他就打入敘述和下列咒語
prompt前置加上：((threeviews,full body,(simple white background:1.1),multiple views)), <lora:threeSidedViewLora_v1>,  charturnerv2,
![](https://i.imgur.com/0kH1X1S.jpg)

目前看評論是不能用自己的設計圖轉3視,實用度不高

# 真實人臉修復外掛[by 謙信2023/3/7]
GFPGAN 真實世界臉部修復，我看其他人有裝，看個人需求吧。
https://github.com/TencentARC/GFPGAN
下載好GFPGANv1.4.pth 後丟最外面，跟webui-user.bat同層。
![](https://i.imgur.com/8kUmblG.png)

# controlNet姿勢網站
https://zhuyu1997.github.io/open-pose-editor/
![](https://i.imgur.com/oFvabKl.png)

&nbsp;
&nbsp;
&nbsp;
# SD外掛CntrolNet安裝教學 [by猴子 2023/3/7]
&nbsp;
1. 開啟SD後在Extensions找到**Avalable**面板，點擊Load from
![](https://i.imgur.com/rHL2XN2.png)
&nbsp;
&nbsp;
&nbsp;
2. 利用ctrl+f搜尋**controlnet**，會看到sd-webui-controlnet，點擊右邊Install進行安裝
![](https://i.imgur.com/9ZMIqRh.png)
&nbsp;
&nbsp;
&nbsp;
3. 另外也安裝骨架控制的外掛，一樣搜尋**openpose editor**，找到後也是點Install右邊進行安裝
![](https://i.imgur.com/zXwSyoo.png)
&nbsp;
&nbsp;
&nbsp;
4. 完成後回到**Installed**面板，在按下**Apply and restart UI**讓他重UI資料
![](https://i.imgur.com/wZGnO5R.png)
&nbsp;
&nbsp;
&nbsp;
5. 接著SD面板切到txt2img面板會看到多了一個**ControlNet**選單，以及**OpenPose Editor**，如圖所示
![](https://i.imgur.com/E9bqUbD.png)
&nbsp;
&nbsp;
&nbsp;
6. 去找controlnet的模型檔進行安裝，以下是下載路徑:
https://huggingface.co/lllyasviel/ControlNet/tree/main/models
&nbsp;&nbsp;&nbsp; ps.檔案肥大，約40多G，建議找已經有的人摳比較快
下載後，放到以下路徑如圖
\stable-diffusion-webui\extensions\sd-webui-controlnet\models
  ![](https://i.imgur.com/FU4wRw2.png)
&nbsp;
&nbsp;
&nbsp; 
7. 重啟CMD然後看到Preprocessor與Model下拉選單有東西表示安裝完成，若沒有按一下選單右邊的重整圖示
![](https://i.imgur.com/LrLikJv.png)
&nbsp;
# ControlNet canny線稿應用[by猴子 2023/3/7]
&nbsp;
Canny為AI線稿描繪功能，我們可以透過直接餵圖讓CANNY抓線稿進型AI採樣，記得使用時**Enable**要打開才作用，如下圖
![](https://i.imgur.com/v62OSKC.png)
&nbsp;
補充說明controlnet介面，所有功能(包含canny, depth,openpose...)都可以進行預覽以及關閉預覽，預覽結果為SD算圖的參考基礎
![](https://i.imgur.com/EkQCPTV.png)
&nbsp;
有線稿進而已線稿為基底給圖上色，建議打開Restore faces。
關鍵字: masterpiece, best quality,Blue hair,Red T-shirt 
反向: 無
結果如下圖可以精準為線稿上色
![](https://i.imgur.com/2nhI4h1.png)
&nbsp;
# 【canny延伸應用】 搭配lora使用，可畫出不錯精確的線稿 [by猴子 2023/3/7]
須使用關鍵字:monochrome或lineart
反向關鍵字:EasyNegative
**關鍵字中不能含有任何上色元素**
教學:
https://www.youtube.com/watch?v=GAPYmRlopn4
lora連結:
https://civitai.com/models/16014
效果:
![](https://i.imgur.com/8kT8G1l.png)

# AI搜尋詞
1 AI图像搜索网站：
[Lexica](https://lexica.art/)

、Arthub、Kera、[ArtSpark](https://artspark.io/)、[OpenArt](https://openart.ai/)、[MidJourney Community](https://www.midjourney.com/showcase/recent/)、[PromptHero](https://prompthero.com/)、[PromptBase](https://promptbase.com/)、[NovelAI元素法典](https://thereisnospon.github.io/NovelAiTag/)

2 提示词生成器网站：PromptoMANIA、Midjourney Prompt Helper、Midjourney Prompt生成器、Prompt Tool、NovelAI tag生成器、魔咒百科词典

MJ咒語成果網站
https://marigoldguide.notion.site/marigoldguide/52ac9968a8da4003a825039022561a30?v=a697f852c05840478b8b504da455cfef


# 關鍵字備份


whole body 全身



反義:
 lowres, bad anatomy, bad hands, text, error, missing fingers, extra digit, fewer digits, cropped, worst quality, low quality, normal quality, jpeg artifacts,signature, watermark, username, blurry, artist name

反義2:
nsfw,ugly,bad_anatomy,bad_hands,extra_hands,missing_fingers,broken hand,more than two hands,well proportioned hands,more than two legs,unclear eyes,missing_arms,mutilated,extra limbs,extra legs,cloned face,fused fingers,extra_digit, fewer_digits,extra_digits,jpeg_artifacts,signature,watermark,username,blurry,large_breasts,worst_quality,low_quality,normal_quality,mirror image, Vague