Stable Diffusion-咒詞反推WD 1.4 Tagger

Stable Diffusion-咒詞反推WD 1.4 Tagger
Stable Diffusion-咒詞反推WD 1.4 Tagger

咒詞反推『Clip』同『DeepBooru』之外,仲有『WD 1.4 Tagger』, 生成咒詞并以權重排序.排前權重高排後權重低.此版適合『Automatic1111’s WebUI』.

  1. 撳『Extensions擴展』->『Install from URL係網裝』
  2. 『URL for extension’s git repository』填『https://github.com/picobyte/stable-diffusion-webui-wd14-tagger.git
https://github.com/picobyte/stable-diffusion-webui-wd14-tagger.git
  1. 撳『Install』下載
  2. 登入CMD命令行模式
  3. 手動下載,指定當前資料夾
CD C:\stable-diffusion-webui\extensions\
  1. 下載『stable-diffusion-webui-wd14-tagger』
git clone https://github.com/picobyte/stable-diffusion-webui-wd14-tagger.git
  1. 如果出錯刪下列檔䅁夾,再重新下載
C:\stable-diffusion-webui\extensions\stable-diffusion-webui-wd14-tagger
C:\stable-diffusion-webui\tmp\stable-diffusion-webui-wd14-tagger
  1. 撳『Apply and restart UI』重啟
  2. 登入CMD命令行模式
  3. 指定當前資料夾
CD C:\stable-diffusion-webui\extensions\stable-diffusion-webui-wd14-tagger
  1. 『WD 1.4 Tagger』
python.exe -s -m pip install -r requirements.txt
  1. 首次𢴇行自動係『HuggingFace』下載.
  2. 撳『Extensions』->『Installed』->『Apply and restart UI』重啟.
  3. Python裝ONNX Runtime
  4. 撳『Tagger』上傳圖畫.
  5. 係『Interrogator』揀『模型』.
  6. 撳『Interrogate image』反推『圖畫』咒詞.
  7. 首次𢴇行係『https://huggingface.co』下載模型.由於位於墙外要
  8. 係『Ratings and included tags』得到咒詞.

 

批量生成咒詞.

  1. 撳『Tagger』->『Batch from directory』
  2. 『Input directory』填圖畫資料夾路徑.
  3. 『Output directory』填生成咒詞資料夾路徑.
  4. 撳『Interrogate』反推『圖畫』咒詞,以圖畫同名『.txt』存儲.

 

Interrogate image 反推圖畫
Ratings and included tags 評級標簽
Excluded tags 排除標簽
  1. 下載模型文檔
https://github.com/KichangKim/DeepDanbooru/releases
https://discord.gg/BDFpq9Yb7K
  1. 将模型和配置移至資料夹『C:\stable-diffusion-webui\models\deepdanbooru』
C:\stable-diffusion-webui\models\deepdanbooru\deepdanbooru-v1-20191108-sgd-e30
C:\stable-diffusion-webui\models\deepdanbooru\deepdanbooru-v3-20200101-sgd-e30
C:\stable-diffusion-webui\models\deepdanbooru\deepdanbooru-v3-20200915-sgd-e30
C:\stable-diffusion-webui\models\deepdanbooru\deepdanbooru-v3-20211112-sgd-e28
C:\stable-diffusion-webui\models\deepdanbooru\deepdanbooru-v4-20200814-sgd-e30
  1. 係『stable-diffusion-webui-wd14-tagger』下新建『models』資料夾.
C:\stable-diffusion-webui\extensions\ stable-diffusion-webui-wd14-tagger \models
  1. 開啟下列網頁,分別下載『onnx』同『selected_tags.csv』
https://huggingface.co/SmilingWolf/wd-vit-tagger-v3
https://huggingface.co/SmilingWolf/wd-swinv2-tagger-v3
https://huggingface.co/SmilingWolf/wd-convnext-tagger-v3
https://huggingface.co/SmilingWolf/wd-v1-4-moat-tagger-v2
https://huggingface.co/SmilingWolf/wd-v1-4-convnextv2-tagger-v2
https://huggingface.co/SmilingWolf/wd-v1-4-convnext-tagger-v2
https://huggingface.co/SmilingWolf/wd-v1-4-convnext-tagger
https://huggingface.co/SmilingWolf/wd-v1-4-vit-tagger-v2
https://huggingface.co/SmilingWolf/wd-v1-4-swinv2-tagger-v2
https://huggingface.co/SmilingWolf/wd-v1-4-vit-tagger
  1. 下載後重命名為,并复制至『C:\stable-diffusion-webui\extensions\stable-diffusion-webui-wd14-tagger\models』資料夾.
wd-vit-tagger-v3.onnx
wd-vit-tagger-v3.csv
wd-swinv2-tagger-v3.onnx
wd-swinv2-tagger-v3.csv
wd-convnext-tagger-v3.onnx
wd-convnext-tagger-v3.csv
wd-v1-4-moat-tagger-v2.onnx
wd-v1-4-moat-tagger-v2.csv
wd-v1-4-convnextv2-tagger-v2.onnx
wd-v1-4-convnextv2-tagger-v2.csv
wd-v1-4-convnext-tagger-v2.onnx
wd-v1-4-convnext-tagger-v2.csv
wd-v1-4-convnext-tagger.onnx
wd-v1-4-convnext-tagger.csv
wd-v1-4-vit-tagger-v2.onnx
wd-v1-4-vit-tagger-v2.csv
wd-v1-4-swinv2-tagger-v2.onnx
wd-v1-4-swinv2-tagger-v2.csv
wd-v1-4-vit-tagger.onnx
wd-v1-4-vit-tagger.csv

 

 

評論