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重启一下

相关推荐
sinat_2869451932 分钟前
claude code上下文
人工智能·深度学习·prompt
空空潍4 小时前
Spring AI 实战系列(四):Prompt工程深度实战
java·人工智能·spring·prompt
Thomas.Sir6 小时前
第十一章:深入剖析 Prompt 提示工程
python·prompt
人工智能小豪7 小时前
LLM的具身鸿沟有解了!微调让大模型真正学会人类的感官与动作感知
人工智能·ai·llm·prompt·embedding·agent·rag
我叫张小白。8 小时前
Dify系列(三):提示词工程的Prompt 结构优化与变量设计
ai·大模型·prompt·dify·智能体
华农DrLai8 小时前
知识工程和知识图谱有什么区别?如何构建完整的知识体系?
数据库·人工智能·gpt·nlp·prompt·知识图谱
AI成长日志1 天前
【GitHub开源项目专栏】扩散模型开源项目深度解析:Stable Diffusion与ControlNet架构全景
stable diffusion·开源·github
AI精钢2 天前
从 Prompt Engineering 到 Harness Engineering:AI 系统竞争,正在从“会写提示词”转向“会搭执行框架”
人工智能·prompt·devops·ai agent·ai engineering
耶夫斯计2 天前
Agent入门-Agent实战(skills\tools\prompt\subagents)
人工智能·prompt·llama
华农DrLai2 天前
什么是知识图谱?实体、关系、属性分别是什么?
人工智能·算法·llm·nlp·prompt·知识图谱