Nerfgun3 / bad_prompt
用于Stable Diffusion的负向提示嵌入向量。
下载 2.6k · 收藏 942 · 3年前更新
社区实测
社区将其作为负向提示词的快捷嵌入使用,能简化负面 prompt 编写,但存在兼容性报错和版本选择困惑。
- 将常用的负向提示词骨架训练为单一嵌入,省去每次手写长负面 prompt 的麻烦
- 配合权重使用(如 0.7–0.8)可提升出图质量
- 与某些环境组合时触发 torch.cuda.HalfTensor 类型不匹配的 RuntimeError
- bad_prompt_v2 与 bad_prompt_version2 名称混淆,二者对出图的影响程度不同
- 嵌入会改变画面风格(artstyle),非所有场景适用
来源
Bug: RuntimeError: Input type (torch.cuda.HalfTensor) and ... - GitHubNerfgun3/bad_prompt · Datasets at Hugging FaceConfuse: What's the right prompt I should use? It seems that...Do we use bad_prompt or bad_prompt_version2 as the negative ...
截至 2026-06-20
- py from datasets import load_dataset ds = load_dataset("Nerfgun3/bad_prompt")