咒詞反推『Clip』同『DeepBooru』之外,仲有『WD 1.4 Tagger』, 生成咒詞并以權重排序.排前權重高排後權重低.此版適合『Automatic1111’s WebUI』.
- 撳『Extensions擴展』->『Install from URL係網裝』
- 『URL for extension’s git repository』填『https://github.com/picobyte/stable-diffusion-webui-wd14-tagger.git』
- 撳『Install』下載
- 登入CMD命令行模式
- 手動下載,指定當前資料夾
CD C:\stable-diffusion-webui\extensions\ |
- 下載『stable-diffusion-webui-wd14-tagger』
git clone https://github.com/picobyte/stable-diffusion-webui-wd14-tagger.git |
- 如果出錯刪下列檔䅁夾,再重新下載
C:\stable-diffusion-webui\extensions\stable-diffusion-webui-wd14-tagger |
C:\stable-diffusion-webui\tmp\stable-diffusion-webui-wd14-tagger |
- 撳『Apply and restart UI』重啟
- 登入CMD命令行模式
- 指定當前資料夾
CD C:\stable-diffusion-webui\extensions\stable-diffusion-webui-wd14-tagger |
- 装『WD 1.4 Tagger』
python.exe -s -m pip install -r requirements.txt |
- 首次𢴇行自動係『HuggingFace』下載.
- 撳『Extensions』->『Installed』->『Apply and restart UI』重啟.
- Python裝ONNX Runtime
- 撳『Tagger』上傳圖畫.
- 係『Interrogator』揀『模型』.
- 撳『Interrogate image』反推『圖畫』咒詞.
- 首次𢴇行係『https://huggingface.co』下載模型.由於位於墙外要
- 係『Ratings and included tags』得到咒詞.
批量生成咒詞.
- 撳『Tagger』->『Batch from directory』
- 『Input directory』填圖畫資料夾路徑.
- 『Output directory』填生成咒詞資料夾路徑.
- 撳『Interrogate』反推『圖畫』咒詞,以圖畫同名『.txt』存儲.
Interrogate image |
反推圖畫 |
Ratings and included tags |
評級標簽 |
Excluded tags |
排除標簽 |
- 下載模型文檔
https://github.com/KichangKim/DeepDanbooru/releases |
https://discord.gg/BDFpq9Yb7K |
- 将模型和配置移至資料夹『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 |
- 係『stable-diffusion-webui-wd14-tagger』下新建『models』資料夾.
C:\stable-diffusion-webui\extensions\ stable-diffusion-webui-wd14-tagger \models |
- 開啟下列網頁,分別下載『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 |
- 下載後重命名為,并复制至『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 |