Stable-Diffusion|从图片反推prompt的工具:Tagger(五)

stable-diffusion-webui-wd14-tagger

前面几篇:
Stable-Diffusion|window10安装GPU版本的 Stable-Diffusion-WebUI遇到的一些问题(一)
【Stable-Diffusion|入门怎么下载与使用civitai网站的模型(二)】
Stable-Diffusion|文生图 拍立得纪实风格的Lora 图例(三)
Stable-Diffusion|文生图 完蛋我被美女包围了人物Lora(四)

本篇介绍通过tagger反推,如果成功安装的话,会在TXT2IMG这一个栏目中多出tagger:

填入一张图片,就会自动生成prompt,同时可以通过send to,直接跳转到txt2img,img2img

安装的方式有多种:

  • 直接从extensions中输入https://github.com/toriato/stable-diffusion-webui-wd14-tagger.git进行安装:
  • 还有一种git clone到extensions文件夹下面

此时,笔者遇到了版本问题,一直没有显示tagger这个栏目,参考了【解决stable diffusion webui1.6 wd1.4 tagger加载失败的问题

需要修改:

tagger/ui.py

复制代码
# 第十行
# from webui import wrap_gradio_gpu_call  # 原代码
from modules.call_queue import wrap_gradio_gpu_call

preload.py

复制代码
# 第4行开始
# from modules.shared import models_path  # 原代码
from modules import paths

# default_ddp_path = Path(models_path, 'deepdanbooru')  # 原代码
default_ddp_path = Path(paths.models_path, "deepdanbooru")

然后restart重启一下

相关推荐
阿拉雷️9 小时前
AI Agent 入门与实战:从对话到干活,理解下一代AI工作方式
人工智能·语言模型·prompt
阿拉雷️1 天前
Prompt工程设计实践:从基础模板到场景化策略
人工智能·语言模型·prompt
dKjmLJLU32 天前
AI Prompt 工程化设计最佳实践(Harness Engineering)
人工智能·prompt
风雨中的小七3 天前
解密Prompt系列70. 从 MLA 到 CSA,聊聊大模型 Attention 的“瘦身”与“闪送”
prompt
在路上走着走着18 天前
Prompt Engineering 入门指南:从原理到上手
人工智能·prompt
coft18 天前
Loop Engineering — 从“写 prompt“到“设计循环“,AI Agent 的下一次进化
人工智能·prompt
CoLiuRs18 天前
从 Prompt 到 Loop:AI 工程到底在卷什么
人工智能·prompt
AI 小老六18 天前
GEPA 架构拆解:让 Prompt 和 Skill 优化不靠玄学
数据库·人工智能·ai·架构·开源·prompt
凯丨18 天前
从写 Prompt 到Loop Engineering:AI 编程的下一次跃迁
prompt
奋飛18 天前
从 Prompt 到 Agent:LangChain 究竟解决了什么问题
ai·langchain·prompt·agent