出处:【NSFW 注意】ComfyUI で circlestone-labs の Anima を使う · 作者:dskjal
Anima 是 circlestone-labs 出品的 2B 轻量级二次元图像生成模型。本文是日文社区对该模型在 ComfyUI 中使用的最完整实践指南:模型生态、官方/三方 LoRA、加速方案、prompt 写法学与实测数据。
A1111 系列已由 forge-neo 提供支持(Anima #738)。
有通过添加层数把参数量增至约 1.5 倍的 Gazingstars123/Anima-2.9B,配套补丁为 gazingstars123/ComfyUI-Anima-2.9B。Reddit 发布帖:[Release] Anima-2.9B-Preview-v1 - Expanded Anima。
在 Anima-2.9B 基础上继续扩展的还有 lylogummy/Anima-3.8B,节点为 GumGum10/comfyui-anima-3-8B。不改善数据集质量、只增加参数量是没有意义的。
Anima 的特点是轻量、而且能画出 NSFW 的互动姿势。
但它的文本编码器只有 0.6B(当前轻量模型主流用 4B),所以无法执行精细指令。比如:无法用自然语言指定 Danbooru/Gelbooru 数据集中不存在的姿势、会发生“标签传染”、prompt 一长指令就守不住,等等。
不过文本编码器能力再弱,个数指定和左右指定还是能做到的。比如指定 thigh strap 的数量和左右位置、固定左右非对称的服装、固定痣的位置或 heterochromia(异色瞳)的瞳色等。
Anima 只能生成 Danbooru/Gelbooru 数据集中存在的姿势,也只能画出数据集中存在的物体。 Z-Image 和 FLUX.2 klein 可以用自然语言指示姿势、认识多种多样的物体;而 Anima 无论文本编码器还是模型本身都较弱、数据集又偏,所以没有泛用性。
因此不要指望用 Anima 完成全部工作,需要划清分工:Danbooru 标签之外的要素交给 FLUX.2 klein、Qwen Image Edit 这类编辑模型处理。
base-v1.0 已能直接生成 2K 左右的图,所以下面的工作流变得现实了:
- 用 Anima 生成(使用画风 LoRA)
- 放大(可选)
- 用 SAM2/SAM3 做分割(可选)
- 用 Anima 或 Illustrious 系衍生模型做 Detailer 精修
优点
- 与 SDXL 相比背景质量更好
- 多人场景(膝枕、NSFW 等)可以指定表情和姿势
- 不懂 Danbooru 标签也能用自然语言(仅英语)写 prompt
- 模型只有 2B,推理快
- LoRA 训练也快
- NSFW 互动姿势能大大方方地出
- 支持作品标签、角色标签、画师标签
缺点
- 画不了文字(英文字母还行)
- 背景质量不算好(与 Z-Image Turbo、FLUX.2 klein 相比)
- 会发生标签传染,多角色时 prompt 变长
- prompt 一长,不遵守指令的概率上升
- 漫画分格位置指定之类做不到(精度低)
- Danbooru 标签里没有的东西画不了
- 无法用自然语言指定数据集里没有的姿势
模型
VAE 与 Qwen Image (Edit) 相同。
- preview:试作版
- preview 2:微调失败后重做预训练的版本。preview 2 的 1MP 训练图数量更多,细节质量比 preview 1 好
- preview 3 base:延续 1MP 训练,并加强了投稿数 50~100 左右的小画师数据集
微调模型
- WAI-ANIMA
- Hakushi Mix Anima
- MiaoMiao RealSkin
官方 LoRA
Turbo 与 Aesthetic 的对比可参见 Comparing all 7 possible Anima combinations (base, aesthetic, turbo lora, turbo baked)。
加速:Anima Turbo LoRA
会损失画风和构图的多样性,但提速且画风稳定——这点与其他蒸馏 LoRA 相同。
- CFG 1 下 8~12 步
- 想要多样性可以把 LoRA 权重调低一些,0.7 左右没问题
- er_sde 噪点多、不推荐。推荐 euler(非 ancestral)
- 不需要质量标签。蒸馏时负向 prompt 已经烧进模型了
- prompt 里加 anime coloring 色感会更好
- ModelSamplingAuraFlow 设为 1~3 的小值能提升质量

@画师标签, strap slip, solo, masterpiece, very aesthetic, absurdres, indoors, window shadow, light rays, bokeh, chromatic aberration, blurry foreground, photo background.
A medium shot of frieren with long elf ears and pale skin and long hair and green eyes and collarbone wearing knotted turban and sleeveless dress with traps and hair towel and hair up and white dress and bare shoulders and bare arms and red teardrop earrings is one eye closed and licking a light blue popsicle.
The background shows a rustic stone interior with a wooden window frame and a balcony railing under bright daylight.- 模型:waiANIMA_v10Base10
- LoRA:官方 Turbo LoRA v0.2(strength 0.7)
- ModelSamplingAuraFlow:1
- steps:20 / cfg:1.0 / sampler:euler / scheduler:simple
高分辨率:Anima Highres/Aesthetic Boost
用 Danbooru 高评分图 1 万张在 [512, 1024, 1536] 三档分辨率上微调的 LoRA,最高支持 4MP。默认脸型会偏向 masterpiece 系(西式)脸。
不放大即可直出长边 2K。
画质提升:Anima RL
通过强化学习提升了细节、对比度、后处理效果等质量。
Greg Rutkowski Style - Anima
官方画风 LoRA。数据集与训练参数可从 Training Data 下载。
数据集制作方法
- 网上收集
- 用 Flux 2 klein 9b 去水印
- 用 Gemma 4 31b 打 caption
法律
数据集的加工,以信息解析为目的时,依日本著作权法第 30 条之 4 第 2 项属于合法。
关于画风 LoRA,日本文化厅的观点
画风、画法不受著作权法保护(令和 5 年度著作权研讨会,文化厅著作权课,p.7)。
制作 LoRA 本身不构成著作权侵权,但 LoRA 文件以及用 LoRA 生成的图片有可能构成著作权侵权。AI 生成物的侵权判断与一般著作权侵权相同,按“类似性”与“依拠性”判断。(令和 5 年度著作权研讨会,文化厅著作权课,p.16)
(文化厅 FAQ 节译)问:6-⑱ 出现了以我名字命名的 LoRA 文件,似乎集中学习了我创作的多幅插画,用它就能生成与我作品相似的图。希望制止这种 LoRA 的制作和传播,该如何应对?答:……仅由特定创作者作品的少量著作物构成的作品群被用作追加学习数据时,若该著作物的复制等行为被评价为以让生成 AI 输出该作品群所含创造性表达的全部或一部分为目的,则在未获著作权人许可、又不符合其他权利限制规定的情况下,可能构成著作权侵害。因此著作权人可以考虑:向该追加学习行为人请求删除其用作学习数据等的复制物(停止侵害请求,著作权法第 112 条等)、损害赔偿(民法第 709 条)、以及告诉并追究著作权侵害的刑事处罚(著作权法第 119 条等)。出处:https://www.bunka.go.jp/seisaku/bunka_gyosei/kibankyoka/faq/index.htmlControlNet
- kohya-ss/ControlNet-LLLite
- kohya-ss/Anima-LLLite
- Wenaka2004/comfyui-anima-ipadapter
- Regional Controlnet for Anima
- Anima Tile & Repair ControlNet-LLLite
Anima 用的 LLLite,多重叠加 LoRA 时效果似乎会变差。按 Claude 的看法,LLLite 是输入加成,前提权重被 LoRA 改变后就会不好使……嗯,是不是也该实验下输出侧加成……
—— Kohya Tech (@kohya_tech),2026-05-18
图像编辑
Anima can edit images! And this is possible in two different methods. 一文介绍了两种方法:
- 用 ControlNet 只编辑左右分割后的右半边
- 用 Reference Latent 节点 + Edit 模型 LoRA
PixelDiT
PixelDiT 用一个 VAE 完成 VAE 解码+放大。
不过工作流冗长,相当于把 Anima 生成的 latent 交给 FLUX 放大的那种流程。
颜色会变,所以要配合 kijai/ComfyUI-KJNodes 的 Color Match 节点。
sorryhyun/ComfyUI-Anima-PiD 是通过替换 VAE 实现放大的自定义节点。
加速
EasyCache、Spectral 加速这类“跳步”加速,与 DMD2、CFG 蒸馏 LoRA 这类“低步数生成”不能同时使用。同时用的话跳步系就不起作用了。
两段采样器
加速可以用在两段采样器的第二段。
两段采样器的缺点:
- 与纯加速相比生成速度变慢
两段采样器的优点:
- 有底图在,构图更多样
- 底图阶段可以用负向 prompt
- 与 base 相比图像更稳定
- 与纯加速相比画风自由度更高

两段采样加速工作流(加速开/关要换用不同的 ModelSamplingAuraFlow)

生成示例:不放大直接出 1536 x 2048。按钮、徽章这类还是会崩;裙子的花纹没有 LoRA 不行。
CFG 蒸馏 LoRA
RDBT - Anima
让 CFG=1 也能高质量生成的 LoRA。约 2 倍提速,但负向 prompt 失效,控制变难。
DMD2
- 官方加速 Anima Turbo LoRA
- RDBT | Anima DMD2 Turbo
- Cosmos-Predict2.5-2B base distilled extracted DMD2 LoRA
画风和构图多样性会下降,但快且画风稳定。
动漫风 4 步就有相当不错的完成度。ModelSamplingAuraFlow 设为 1~3 的小值能提升质量。
设置
- CFG:1
- 步数:4~16
- 采样器:res_multistep、er_sde、lcm、euler
RTX3050 出 1024 x 1024 四步只要 6 秒。RTX 5090 可以做到实时。

采样器用 res_multistep
masterpiece, best quality, anime screenshot, v.
There are three girls in a room.
The girl on the left has short red hair and blue eyes. She is sitting on a stool. She is wearing a pink camisole and gray dolphin shorts.
The girl in the middle has long silver hair and red eyes. She is standing. She is wearing a white collared shirt and a black pencil skirt.
The girl on the right has medium brown hair and green eyes. She is sitting on a stool. She is wearing a beige sweater and a blue denim.
There is a potted plant, a frying pan on the kitchen wall in the background.Spectral 加速
Adaptive Spectral Feature Forecasting 用切比雪夫多项式预测下一时间步的模型输出,最高可加速 4.8 倍。但那是按 50 step 生成计算的;蒸馏模型或 15 step 这类低步数下几乎不会加速。
Anima 版 ComfyUI 节点大约能提速 35%:AdamNizol/ComfyUI-Anima-Enhancer
- spectrum_w:谱预测与线性插值的混合比,1.0 时只用谱预测。原论文推荐 0.5~1.0
- spectrum_m:切比雪夫基的数量。原论文推荐 4。调大细节表现力上升但不稳定
- spectrum_lam:岭正则化强度。原论文推荐 0.1
- spectrum_warmup_steps:不跳过的步数
- spectrum_window_size:可跳过步数的初始值
- spectrum_flex_window:实际跳步量的收窄系数。设 0 时最多跳 spectrum_window_size 指定的步数。原论文推荐 0.75
1024 x 1024、30 step、SageAttention + —fast 时生成需 68 秒;Sage + —fast + Spectral(spectrum_flex_window=0.75)则只需 39 秒。约 74% 提速。
WaveSpeed
chengzeyi/Comfy-WaveSpeed
SPEED
ruwwww/ComfyUI-SPEED
去噪的初期步是决定大致颜色和构图的阶段,这个阶段不需要大分辨率。也就是说,去噪的每个阶段都存在“最低必要分辨率”。SPEED 按去噪步骤缩放到该阶段最佳分辨率,约 2 倍提速。
副作用:构图、画风会变化,细节有增多倾向。
DMD 这类步数极少的 LoRA 从一开始就画完成形,与 SPEED 组合也加速不了多少。
CFG=1 时使用负向 prompt
CFG 蒸馏 LoRA 和 DMD2 用不了负向 prompt。NegPip 和 NAG 通过介入 attention 让负向 prompt 重新可用。
NegPip
支持 Anima 的实现有 pamparamm/ComfyUI-ppm。
NegPip 不是输入负向 prompt 栏,而是在强调语法里加负号,如 (worst quality:-1)。
NegPiP 把 QKV 中的 V 反转:
QKV = (Q * K) * -1 * VNAG
- BigStationW/ComfyUI-NAG-Extended
- hybskgks28275/ComfyUI-Anima-NAG
NAG 分别计算 prompt 的 KV 与负向 prompt 的 KV,然后相减:
QKV = (Q * K - Q_n * K_n) * V工作流
把 example.png 拖进 ComfyUI 即可。
设置
Generation settings
- 分辨率 512 x 512 ~ 1536 x 1536
- 30-50 steps
- 4-5 CFG
- 采样器
- er_sde:中性画风、平涂、线条锐利。默认推荐采样器
- euler_a:柔和、线条细。适合 2.5D。CFG 调高也不容易过饱和
- dpmpp_2m_sde_gpu:接近 er_sde 但画面随机性更大
- 想要真实质感可用 beta57 scheduler(ComfyUI RES4LYF 自定义节点包)
er_sde
出自论文 Elucidating the solution space of extended reverse-time SDE for diffusion models。
er_sde 是把“快但质量不高的 ODE”与“高质量但需要步数的 SDE”混合起来的采样器,会按步数计算最佳混合比。
分辨率
可生成以下分辨率。超过 1536 身体会拉长,需要两段采样器。
- 1536 x 1536
- 1600 x 1088
- 1856 x 1024
ModelSamplingAuraFlow
用加速(Turbo、DMD LoRA)时,把 ModelSamplingAuraFlow 数值调低(3 以下)更容易得到线条清晰的图。
官方工作流中没有 ModelSamplingAuraFlow 节点。即使没有该节点,默认也已施加 timestep shift 3。

Prompt
Anima 的数据集
主要数据集是 Gelbooru。仅 1girl 一个标签就比 Danbooru 多出 100 万张以上。Gelbooru 正在与 Danbooru 推进标签共通化,大量标签已被标记为 Deprecated(弃用)。
| Danbooru | Gelbooru | |
| 标签管理 | 严格 | 交给用户,错误很多 |
| 图片质量管理 | 低质图、重复图、被画师申请删除的图会删掉 | 没被举报的错误就放着 |
| wiki 质量 | 高 | 低 |
| 表现管制 | 禁止投稿萝莉、过激题材 | 比 Danbooru 宽松 |
官方推荐标签
- 正向:masterpiece, best quality, score_7,
- 负向:worst quality, low quality, score_1, score_2, score_3, @画师名
- Danbooru 标签与 Gelbooru 标签并存时,优先用 Gelbooru 标签更好
标签与自然语言的分工
与位置无关的标签在 prompt 开头罗列;位置重要的内容用自然语言写。
与位置无关的标签示例
masterpice, @画师标签, highres, uncensored, indoors, 2girls.与位置有关的内容示例
A girl with red eyes wearing a school uniform is sitting on the left.A girl with blue eyes, silver hair wearing a t-shit, pants is standing on the right.There is a potted plant is on the left, a table on the right.提升画力
- 用 LoRA(也有固定画风的效果)
- 用画师标签
- 在负向 prompt 里指定画力低的画师(或不喜欢的画风作品,如 the simpsons, overwatch, apex legends 等),会非常稳定
- 想要厚涂风,就把平涂动画风的画师放进负向
画师标签写成“@ + 画师名 + 逗号 + 半角空格”(例:@画师名, 1girl, …)时效果最大化。
画师列表
- Anima 2B - Style Explorer
- Anima Style Gallery created by Mooshieblob
- Anima2B_Artist_Index_59k.txt
角色列表
ANIMADEX 里点 Browse characters 可进入角色检索页。
画风混合
可以使用 asagi4/comfyui-prompt-control 这类能按时间步切换 prompt 的扩展,或用下面的方法。
画师名之间不要用逗号分隔。以下各种写法的混合方式各不相同:
- @画师名 |
- @画师名 @画师名
- @画师名 画师名
Anima Artist Mixer
An1X3R/Anima-Artist-Mixer
实现很简单:把 prompt 按画师各复制一份,分别计算 QKV 再混合。
标签书写顺序
Tag order
[quality/meta/year/safety tags] [1girl/1boy/1other etc] [character] [series] [artist] [general tags]
[质量/元信息/年代/分级标签][人数与性别][角色名][作品名][画师名][其他标签]
质量标签对 masterpiece 系和 Pony V7 系都有效。注意 Pony V7 需要下划线。质量标签也会影响画风,容易画出所谓“AI 味”的图。
与分级标签(safety tag)分开,Danbooru 标签里还有 censored 和 uncensored。
| 类别 | 标签示例 |
| 质量标签 | masterpiece, best quality, good quality, normal quality, low quality, worst quality;PonyV7 aesthetic model 系:score_9, score_8, …, score_1 |
| 年代标签 | year 2025, year 2024, … newest, recent, mid, early, old |
| 元标签 | highres, absurdres, anime screenshot, jpeg artifacts, official art 等 |
| 分级标签 | safe, sensitive, nsfw, explicit |
| 画师标签 | @画师名 |
Prompt 示例
year 2025, newest, normal quality, score_5, highres, safe, 1girl, oomuro sakurako, yuru yuri, @nnn yryr, smile, brown hair, hat, solo, fur-trimmed gloves, open mouth, long hair, gift box, fang, skirt, red gloves, blunt bangs, gloves, one eye closed, shirt, brown eyes, santa costume, red hat, skin fang, twitter username, white background, holding bag, fur trim, simple background, brown skirt, bag, gift bag, looking at viewer, santa hat, ;d, red shirt, box, gift, fur-trimmed headwear, holding, red capelet, holding box, capelet| 类别 | 标签 |
| 年代标签 | year 2025, newest |
| 质量标签 | normal quality, score_5 |
| 元标签 | highres |
| 分级标签 | safe |
| 人数与性别 | 1girl |
| 角色名 | oomuro sakurako |
| 作品名 | yuru yuri |
| 画师标签 | @nnn yryr |
质量标签
有了质量标签就没法用画师标签固定画风(会飘)。要用画师标签的话,不带质量标签质量也没问题。
反过来,如果想要画风上有一定“抽卡感”,加质量标签是最省事的手段。

@画师标签, (thick lineart:0.5), highres, explicit.
A girl with blue eyes, eyelashes, medium breasts, breasts apart wearing a red shiny highleg string bikini is head tilt, grin and standing in contrapposto with v sign.
In the background, there is a beach with a sea and a palm tree.
负向 prompt:
@画师标签, 3d, worst quality, low quality, score_1, score_2, score_3, score_4, blurry, jpeg artifacts, sepia, watermark, logo, text, flat color, shaded face, blacklighting9:16 的高分辨率会拉长身体,所以用两段采样器(两段都用 Anima)生成。
Illustrious 的 masterpiece 系质量标签
| 评分标签 | 百分位 |
| worst quality | ~8% |
| bad quality | ~20% |
| average quality | ~60% |
| good quality | ~82% |
| best quality | ~92% |
| masterpiece | ~100% |
Pony V7 的质量标签
把评分(收藏数、投票数)按 10% 一档分层得到的标签。
自然语言
Natural language prompting tips
全部用自然语言描述时,至少要两句以上。太短出不了正常的图。
自然语言可以和标签混用。
多角色指定时必须遵守的规则
不遵守以下规则,角色特征就会互相混染。多角色时每个角色的特征都要写出来。
- 角色名后面紧跟该角色的属性描述
- 每个角色都要写全自己的特征。不能只罗列角色名
"Digital artwork of Fern from Sousou no Frieren, with long purple hair and purple eyes, wearing a black coat over a white dress with puffy sleeves..."标签传染
Anima 受「标签 + 逗号 + 空格」的影响很大。比如写了 A girl with red eyes, ,其他人的眼睛也会变红。
简单的对策是:只要对某个属性(服装、表情、姿势、位置)做了指定,就给所有人都指定一遍。
这个对策在没有对应标签时无效。比如 closed eyes 没有反义词 open eyes,就成了问题。不过此时指定 brown eyes 这样的瞳色反而更容易让眼睛睁开。指甲油 nail polish 没有“没涂指甲油”的标签,于是男性也会涂上指甲油。口红 lipstick 同理。
传染对策
“标签+逗号”会放大标签的影响力,所以用 and 连接的方式可以缓解传染:
- 容易传染的写法:A girl with red hair, blur eyes, beige sweater
- and 法:A girl with red hair and blur eyes wearing beige sweater
自然语言部分不用逗号的 prompt 示例:
masterpiece, best quality, nsfw, 2girls, clothed female nude female, complex interior, photo background.
A girl with silver long hair wearing highleg leotard with navel cutout is standing on the left.
A girl with brown medium hair wearing highleg leotard with cleavage cutout is standing on the right.强调语法
Anima 可以用强调语法 (标签名:强度)(例:(1girl:3))。SDXL 时代一般用 1.5 左右,但在 Anima 里 1.5 太小,设到 3~5 才会明显生效。
comfy/text_encoders/anima.py 的 AnimaTokenizer.tokenize_with_weight() 里会把 Qwen 3 0.6b 的权重重置为 1.0,但 t5xxl 的分词器仍在工作,所以 (标签:2) 这类强调语法依然有效。
Anima 用 Qwen3 0.6b 和 t5xxl 两个分词器把 prompt 分词,然后都用 Qwen 3 0.6b 编码、生成两份 embeddings,拼接后输入 DiT。
- [1]: comfy/text_encoders/anima.py, tokenize_with_weights
- [2]: comfy/text_encoders/anima.py, encode_token_weights
- [3]: comfy/samplers.py, calc_cond_batch, cond_cat
边框・黑边
没有直接对策。
- 把 border, pillarboxed, letterboxed 放进负向效果也弱
- prompt 里放 highres, absurdres, 有不易出现的倾向
- 改变宽高比有时也不易出现
面积控制
写得详细的东西会被画得大。把背景写详细,角色就会画得小。多人时只详细写某个角色,其他角色就会被画小、画远或被裁切。
增加背景细节
- 调大 ModelSamplingAuraFlow 的数值
- prompt 里加 detailed background、complex interior 或 complex exterior
脸部阴影对策
把 shaded face, blacklighting 放进负向。
文字渲染
英文字母画得还行。虽然没有 japanese text 这个 Danbooru 标签,但写进 prompt 后拟音字容易变成日文。
把 english text, engrish text, chinese text, korean text 放进负向,sound effects 的拟音字就容易变成日文。
分格位置指定
on the right、on the left top 这类指示相当有效。on the left panel 也有效。下面的写法也能用:
left side panel: (此处写自然语言内容)right side panel: (此处写自然语言内容)
@画师标签, highres, absurdres, sensitive, 3koma, multiple views, doujinshi, manga, comic, realistic, sound effects, speech bubbles, 2girls, beach, sand, a cabin,
A girl with brown hair wearing a bikini with covered nipples, skindentation, holding a innertube, full body on the right.
A black hair girl and a brown hair girl are faceing, profile on the top left.
The two girls make heart hands duo on the left bottom.
负向 prompt:
@画师标签, censored, upper teeth only, 3d, sketch, flat color, bar censor, worst quality, low quality, score_1, score_2, score_3, score_4, blurry, jpeg artifacts, sepia, watermark, logo, text, shaded face, blacklighting,english text, engrish text, chinese text, korean textPrompt 的注意点
左右指定是弱项
用自然语言写下面这种面对面的 prompt,朝向正确的概率约 50%。纯随机命中率是 25%,所以并非乱猜。用 eye contact 可以 100% 正确,所以自然语言还是当辅助看。
masterpiece, best quality, anime screenshot, v, white background, 2girls, standing, cowboy shot.
A girl with silver long hair, profile, facing left is standing on the right.
A girl with purple short hair, profile, facing right is standing on the left.另外,把左右对调后,正确率能到 80% 左右:
masterpiece, best quality, anime screenshot, v, white background, 2girls, standing, cowboy shot.
A girl with purple short hair, profile, facing right is standing on the left.
A girl with silver long hair, profile, facing left is standing on the right.代词是弱项
He、She、the girl with white hair 之类的代词,最好当作无法理解。
不理解 Markdown
用 Markdown 的标题符号 # 时,# 可能会被原样画进图里。文本编码器多半不认识 Markdown,估计是图像训练时没用过 Markdown。
ComfyUI 的 prompt 编辑功能
注释
// 单行注释。这部分不会反映到 prompt 里/*多行注释。这里的文字不会反映到 prompt 里。*/强调
(要强调的词:2) 等。使用 CLIP 的 SDXL 等模型有效,用 LLM 的新模型里多数无效,Anima 里有效。
Ctrl + 上下方向键可以调整光标所在单词的权重。
使用示例:
(pale color:3)随机生成
用 | 分隔的候选项中随机选一个:
{red|white|black|navy|pink}, {2|3|4}girls逗号后的空格是必须的
逗号后有没有空格会改变结果,用画师标签一试便知。
原因可以用 Qwen 3 0.6b 的分词器对 prompt 做分词·逆分词来分析:
from transformers import AutoTokenizertokenizer = AutoTokenizer.from_pretrained("Qwen/Qwen3-0.6B")text = "masterpiece, best quality"print(tokenizer([text], return_tensors="pt"))
text = "masterpiece,best quality"print(tokenizer([text], return_tensors="pt"))[13629, 22362, 11, 1850, 4271] # masterpiece, best quality[13629, 22362, 8402, 477, 4271] # masterpiece,best quality
[13629, 22362, 13, 1850, 4271] # masterpiece. best quality[13629, 22362, 51276, 4271] # masterpiece.best quality逆变换
text = "masterpiece, best quality"input_ids = tokenizer([text], return_tensors="pt")["input_ids"][0] # tokenizetokens = tokenizer.convert_ids_to_tokens(input_ids) # ID to token 变换clean_tokens = [t.replace('Ġ', ' ') for t in tokens] # qwen 系的特殊处理
print(clean_tokens)# ['master', 'piece', ',', ' best', ' quality']
text = "masterpiece,best quality"...# ['master', 'piece', ',b', 'est', ' quality']
text = "masterpiece,best quality,@画师标签"...# ['master', 'piece', ',b', 'est', ' quality', ',@', '画师标签']拟声词
拟音(SFX / 拟声词)基准测试结果。
角色 prompt 增强器
Anima 除了角色名还需要 red hair and long hair 之类的特征描述。所以有个“角色名 → 角色名+特征”的替换节点会很方便。
可以用 pythongosssss/ComfyUI-Custom-Scripts 或 WASasquatch/was-node-suite-comfyui。
用 LLM 做翻译
gpt-oss-20b、Gemma 4 都能用。
- Anima 专用翻译工具:Tomiigo/anima-prompt-pipeline
gpt-oss-20b
(原文为日语翻译模板,此处译为中文,规则不变)
请把下面的中文翻译成英语。翻译规则如下:- 描写一个人时不要拆成两句,尽量用一句话完成- 有角色名时以角色名为主语,但全部小写(例:银发的芙莉莲是… → The frieren with silver hair ...)- 没有角色名时,女孩用 girl、成年女性用 mature woman 作主语- 服装写在 wearing 后面用逗号连接(例:A girl wearing a t-shirt, earrings, a skirt, shoes is ...)- 颜色、表情等写在 with 后面用逗号连接(例:A girl wearing a t-shirt with smile, red eyes, blue long hair ...)- 动作使用进行时(例:A girl wearing a t-shirt with smile is sitting on a chair.)
# 词表
词表内的词必须使用指定的译法。
- criss-cross halter:交叉挂脖- bubble tea challenge:徒手珍珠奶茶挑战- dolphin shorts:海豚短裤
# 待翻译的中文
(此处放入你的描述)Qwen3.5-9B-Uncensored-HauhauCS-Aggressive
请把下面的中文翻译成英语。翻译规则如下:- 描写一个人时不要拆成两句,尽量用一句话完成- 有角色名时以角色名为主语,但全部小写(例:银发的芙莉莲是… → The frieren with silver hair ...)- 没有角色名时,女孩用 girl、成年女性用 mature woman 作主语- 服装写在 wearing 后面用逗号连接(例:The girl wearing a t-shirt, earrings, a skirt, shoes is ...)- 颜色、表情等写在 with 后面用逗号连接(例:The girl wearing a t-shirt with smile, red eyes, blue long hair ...)- 动作使用进行时(例:The girl wearing a t-shirt with smile is sitting on a chair.)- 禁止使用 ** 强调符号- 只输出翻译后的英文,不要输出任何多余内容
# 词表
词表内的词必须使用指定的译法。(原文给出日文→英文映射,含 cum in pussy、fat bald ugly bastard、faceless、perky breasts、large areolae、puffy nipples、lace-trimmed、covered nipples、skindentation、full body 等,详见原文)Tips
大小的指定时灵时不灵。基本原则是写“看得见的东西”。
- 反例:small navel cutout、large navel cutout
- 正例:navel cutout, Her abdomen is mostly exposed.
手指融化
- 增加步数
- 提高分辨率
- ModelSamplingAuraFlow 节点给 6 以上的 shift 值
- 负向加 bad anatomy, bad hands, missing fingers, extra digits, fewer digits, artistic error,
画风
画风的固定
最可靠的办法是自己训 LoRA。
质量标签(masterpiece、score_9 等)会影响画风。尤其 score_9, score_8, score_7 容易画出海外画师风。以下情况应去掉质量标签:
- 想固定某画师的画风时
- 想要动画风时(加 anime screenshot)
- 想贴近官方插画时(加 official art 或 game cg)
画风控制主要靠负向 prompt:
- 动画:prompt 加 anime screenshot,负向加 painterly
- 2.5D:prompt 加 masterpiece,负向加 anime coloring, anime screenshot
- 插画风:prompt 加 masterpiece,负向加 anime coloring, anime screenshot, 3d
画风控制常用标签
- 画师标签
- 质量标签
- 作品名(granblue fantasy, blue archive 等)
- 写实系
- 3d
- realistic
- virt-a-mate(Danbooru 没有、Gelbooru 有的 3D 游戏)
- 线条系
- lineart
- no lineart
- thick lineart
- 草稿系
- sketch
- oekaki
- partially colored
- spot color(黑白中局部上色)
- 画材系
- painterly(厚涂)
- watercolor (medium)
- poster (medium)
- colored pencil (medium)(彩铅)
- graphite (medium)(铅笔素描)
- 动画系
- anime coloring
- anime screenshot
- 游戏系
- game cg
- game screenshot
- 色彩系
- monochrome
- greyscale
- flat color
- pastel colors
- high contrast
- sepia
- imageboard colors(4chan 式的棕色调)
- warm colored
- cool colored
- analogous colors(类似色・单色主题)
- pale color(低饱和偏亮)
- muted color(偏暗、饱和度略升)
- multiple theme colors
- inverted colors
- 细节度系
- absurdly detailed composition
- complex exterior
- loaded interior
- messy room
- too many
- scenery
推理速度
SageAttention + TorchModelCompile 约可提速 25%。
环境
- Windows11 25H2
- RTX3050
- RAM 32 GB
- python 3.12.9
- torch 2.9.1+cu128
- triton_windows-3.5.1.post23
- sageattention-2.2.0+cu128torch2.9.0.post4
- CFG 5
无优化
| 分辨率 | 推理速度 (s/it) | 30 step(秒) |
| 1024 x 1024 | 2.5 | 80 |
| 1024 x 1408 | 3.7 | 110 |
SageAttention
| 分辨率 | 推理速度 (s/it) | 30 step(秒) |
| 1024 x 1024 | 2.32 | 70 |
| 1024 x 1408 | 3.30 | 100 |
SageAttention + TorchModelCompile(inductor)
| 分辨率 | 推理速度 (s/it) | 30 step(秒) |
| 1024 x 1024 | 1.98 | 58 |
| 1024 x 1408 | 2.87 | 85 |
| 1024 x 1536 | 3.24 | 100 |
SageAttention + EasyCache
EasyCache - skipped 7/30 steps (1.30x speedup)
| 分辨率 | 推理速度 (s/it) | 30 step(秒) |
| 1024 x 1024 | 1.86 | 55 |
| 1024 x 1408 | 2.65 | 79 |
| 1024 x 1536 | 2.90 | 93 |
SageAttention + —fast 选项
| 分辨率 | 推理速度 (s/it) | 30 step(秒) |
| 1024 x 1024 | 2.25 | 67 |
| 1024 x 1408 | 3.16 | 94 |
| 1024 x 1536 | 3.50 | 105 |
SageAttention + EasyCache + —fast 选项
| 分辨率 | 推理速度 (s/it) | 30 step(秒) |
| 1024 x 1024 | 1.73 | 51 |
| 1024 x 1408 | 2.55 | 76 |
| 1024 x 1536 | 2.85 | 84 |
作例
可参考 Civitai 的 Anima 作品区。
统一设置:
- 30 steps
- cfg 5
- sampler: er_sde
- scheduler: simple
- ModelSamplingAuraFlow 的 shift:6

masterpiece, best quality, @画师标签.
There are three girls in a room.
The girl on the left has short red hair and blue eyes. She is sitting on a stool. She is wearing a pink camisole and gray dolphin shorts.
The girl in the middle has long silver hair and red eyes. She is standing. She is wearing a white collared shirt and a black pencil skirt.
The girl on the right has medium brown hair and green eyes. She is sitting on a stool. She is wearing a beige sweater and a blue denim.
There is a potted plant, a frying pan on the kitchen wall in the background.
负向 prompt:
worst quality, low quality, score_1, score_2, score_3, blurry, jpeg artifacts, sepia
@画师标签, (realistic:0.4), mature, sensitive, highres, 1girl, standing, school uniform, indoors, school,
She says "This is FINE" in a speech bubble and is holding a sign written "card text" in her right hand. She is standing on the left.
There is a chalkboard written "This is written on a chalkboard!" in red.
负向 prompt:
sketch, oekaki, upper teeth only, worst quality, low quality, score_1, score_2, score_3, score_4, blurry, jpeg artifacts, sepia, watermark, logo, text, shaded face, blacklighting,thong, lowleg, g-string, impossible clothes, impossible underwear, covered navel,bad anatomy, bad hands, missing fingers, extra digits, fewer digits, artistic error,
后处理效果拉满。
@画师标签, highres, 1girl, sensitive, outdoors, from below,
dusk, chromatic aberration, depth of field, blurry background, bloom, vignetting, lens flare, backlighting, film grain, bokeh, perspective, diffraction spikes, dutch angle.
A girl with eyelashes wearing school uniform, loafers is standing and looking at viewer.
负向 prompt:
@画师标签, greyscale, sketch, oekaki, upper teeth only, bow panties, bar censor, worst quality, low quality, score_1, score_2, score_3, score_4, jpeg artifacts, watermark, logo, text,english text, engrish text, chinese text, korean text
@画师标签, masterpiece, best quality
# play
uncensored, vaginal, sex from behind, rough sex, from side
# girl
on the left side, skinny, black long hair, eyelashes, red eyes, open mouth, medium breasts, choker, blue cotton panties, panties aside, pigeon-toed, barefoot
# boy
on the right side, grabbing another's ass
# effect
cum in pussy, sound effects, motion lines, sweat
# background
indoors, carpet, table, door, painting (object)
负向 prompt:
worst quality, low quality, score_1, score_2, score_3, blurry, jpeg artifacts, sepia
能实现只用标签很难指定的姿势。
@画师标签, masterpiece, best quality, highres, 2girls, explicit, uncensored, futa with female, indoors, bed sheet, pillow, window, curtains, yuri, vaginal sex, cum in pussy.
// leftA naked girl with embarrassed and brown long hair and perky breasts and puffy nipples and split and spooning is lying on the left. Her left leg up vertically and her right leg is outstretched horizontally.
// rightA naked futanari girl with black long hair and perky breasts and puffy nipples and nail polish and grin and looking down and barefoot and wariza is straddling on her right leg on the right. She is holding the brown haired girl's leg.
负向 prompt:
@画师标签, 3d, white background, bar censor, worst quality, low quality, score_1, score_2, score_3, score_4, blurry, jpeg artifacts, sepia, watermark, logo, motion lines, text, flat color, shaded face,blacklighting
faceless fat bald ugly bastard 完全不会传染,光凭这一点就有使用价值。v sign 会传染。looking to the left side 无效。
画力高的画师倾向于把 ugly bastard 画得不够丑。
@画师标签, highres, explicit, 1boy, 1girl, indoors, hotel room.
A faceless fat bald ugly bastard with grin wearing t-shirt is standing on the right side. He grabbed the girl's breast over shoulder and v sign with his right hand.
A embarrassed girl with perky breasts, puffy nipples is standing and looking to the left side. arm around shoulder. Her arms at side.
负向 prompt:
@画师标签, upper teeth only, 3d, sketch, flat color, bar censor, worst quality, low quality, score_1, score_2, score_3, score_4, blurry, jpeg artifacts, sepia, watermark, logo, text, shaded face, blacklighting
@画师标签, masterpiece, best quality, 2girls, outdoors.
A girl with brown hair wearing a school uniform is standing.
Another girl with red hair wearing a t-shirt and a skirt is standing behind the girl far away.可以指定景深。

Anima
@画师标签, masterpiece, best quality, highres, safe, 1girl, indoors, uneven footing, stepping on object, knee up.
A girl with long hair, blue eyes has her left arm up vertically and her right arm horizontally. She is standing and stepping on the couch with her left foot and her right foot is on the floor.
负向 prompt:
sketch, oekaki, upper teeth only, worst quality, low quality, score_1, score_2, score_3, score_4, blurry, jpeg artifacts, sepia, watermark, logo, text, shaded face, blacklighting这个姿势自然语言出不来,是找到 uneven footing, stepping on object, knee up 后抽卡抽出来的。

FLUX.2 klein 9b
Anime style.
A girl with long hair wearing a competition swimsuit is standing on the floor.
# arms
Her left arm is straight up, and her right arm is straight out to the side.
# legs
She is stepping on the sofa seat with her right foot and her left foot is on the floor.
# roomThere is a carpet.
重试了几十次。角色标签 3 人以上时区分描绘的成功率非常低。
@画师标签, masterpiece, best quality, 3girls,
hatsune miku is wearing a grey shirt with bare shoulders. She is lying on back.
kagamine rin with short blonde hair wearing a sailor shirt. girl on top. She is straddling on hatsune miku.
megurine luka with pink long hair with crossed arms. She is standing behind them. She is looking at the girls.
# background
indoors, window, curtain,
负向 prompt:
worst quality, low quality, score_1, score_2, score_3, blurry, jpeg artifacts, sepia
@画师标签, masterpiece, best quality,
kasane teto (sv), red drill hair, grey jacket, layered skirt
负向 prompt:
worst quality, low quality, score_1, score_2, score_3, blurry, jpeg artifacts, sepia虽是预览版,但 1girl 的精度很高,推测预训练量相当大。

@画师标签, 1girl, chibi, portrait, white background
frieren, capelet, floating earrings, gold trim, green eyes, pointy ears, sleeve cuffs, smile, striped shirt, finger to mouth, sideways glance, looking at viewer, half-closed eyes
负向 prompt:
backlighting, worst quality, low quality, score_1, score_2, score_3, score_4, blurry, jpeg artifacts, sepia, sketch, english text, engrish text, chinese text, korean text
@画师标签, safe, highres, 1girl, portrait.
touhoku kiritan with closed eyes, doyagao, :D, head tilt, blunt bangs, twintails wearing a kimono. Her left hand is next to her head with index finger raised.
负向 prompt:
3d, sketch, upper teeth only, worst quality, low quality, score_1, score_2, score_3, score_4, blurry, jpeg artifacts, sepia, watermark, logo, text, shaded face, blacklighting,english text, engrish text, chinese text, korean text
@画师标签, masterpiece, best quality, safe, 1girl, kotonoha akane, white background.
kotonoha akane with pink long hair, hair ornament on the right head wearing a black dress, detached sleeves is holding a hole apple pie on a plate on her right hand is standing.
负向 prompt:
covered navel, sketch, upper teeth only, worst quality, low quality, score_1, score_2, score_3, score_4, blurry, jpeg artifacts, sepia, watermark, logo, text, shaded face, blacklighting,bad anatomy, bad hands, missing fingers, extra digits, fewer digits, artistic error把 a hole apple pie 改成 a piece of apple pie 就变成切块的派了。

@画师标签, masterpiece, best quality, 2boys, 1girl,
The three of them are lined up in a row.
# girlThe standing girl is wearing a school uniform, ahegao, double v.
# boy 1A standing boy wearing a t-shirt and pants is expressionless and looking looking outside(left) on the left.
# boy 2Another boy wearing a school swimsuit is looking at the girl with surprising, open mouth. He is standing on the right. crossed arms.
# background
indoors, classroom, chalkboard
负向 prompt:
worst quality, low quality, score_1, score_2, score_3, blurry, jpeg artifacts, sepia, sketch
Markdown 标题符号 # 有漏出去的情况,所以模型很可能不理解 Markdown。
@画师标签, masterpiece, best quality, 3girls, multiple views, brown long hair, indoors, classroom, chalkboard,
# LeftThe standing girl is wearing a school uniform, v, smile.
# MiddleThe girl is wearing a bra and a panties, embarrassed.
# RightThe angry girl wearing a school swimsuit. pointing at viewer.
负向 prompt:
worst quality, low quality, score_1, score_2, score_3, blurry, jpeg artifacts, sepia, sketch, english text, engrish text, chinese text, korean text
@画师标签, masterpiece, best quality, 2koma, comic, 1girl, 1boy, indoors
# koma 1
1girl, solo, :D, seductive smile, brown eyes, long eyelashes, looking at viewer, portrait, collared shirt, suit jacket, id card, straight-on, head tilt
# koma 2
from side, nude, sex from behind, holding another's wrist, doggy style, torogao, perky breasts, ass, closed eyes
负向 prompt:
worst quality, low quality, score_1, score_2, score_3, blurry, jpeg artifacts, sepia, sketch, english text, engrish text, chinese text, korean text
@画师标签, highres, absurdres, explicit, uncensored, 3koma, multiple views, doujinshi, manga, comic, realistic, sound effects, motion lines, speech bubbles, heart \(symbol\), 1girl, 1boy, clothed female nude female,
A girl wearing a sweater with covered nipples, lace-trimmed panties, skindentation, full body on the right.
A girl is naked, perky breasts, large areolae, puffy nipples, upper body on the left.
A naked girl sex with faceless fat bald ugly bastard, cum in pussy on the left bottom.
负向 prompt:
@画师标签, censored, upper teeth only, 3d, sketch, flat color, bar censor, worst quality, low quality, score_1, score_2, score_3, score_4, blurry, jpeg artifacts, sepia, watermark, logo, text, shaded face, blacklighting,english text, engrish text, chinese text, korean texton the right、on the left bottom、on the right top 这类位置指示相当有效。

@画师标签, newest, year 2025, masterpiece, best quality, uncensored, explicit, pov hands, torso grab, 1girl, looking back, panties aside, median furrow, long hair, messy room, vaginal, deep penetration, puckered anus, open mouth, embarrassed, veiny girthy penis, cum in pussy.
There is a cross-section on the top right.
There is a impregnation speech bubble on the middle left.
负向 prompt:
sketch, oekaki, upper teeth only, bow panties, bar censor, worst quality, low quality, score_1, score_2, score_3, score_4, blurry, jpeg artifacts, sepia, watermark, logo, text, shaded face, blacklighting,thong, lowleg, g-string断面图、受精效果的位置也能指定。

@画师标签, masterpiece, best quality, highres, explicit, 2girls, white background.
A twitching girl with constricted pupils wearing a sweater and a skirt is standing, pigeon-toed on the left. She is leaning forward and v arms, hand between legs. She is facing to the right.
There is a uterus and a purple dildo cross-section on the top left.
Right girl wearing a beige sweater and navy skirt is looking at the girl and confused. There is a spoken question mark over her head. She is facing to the left.
// face-to-face 会对齐头的位置,导致其中一方被幼态化// 加 newest, year 2025 不知为何会变成黑白
负向 prompt:
monochrome, greyscale, flat color, sketch, oekaki, upper teeth only, worst quality, low quality, score_1, score_2, score_3, score_4, blurry, jpeg artifacts, sepia, watermark, logo, text, shaded face, blacklighting
想画漫画时标签会传染,prompt 一长无视指令的概率就上升。
明明指定了 1boy,the man 却没能关联到 ugly bastard——文本编码器的能力不足可见一斑。
highres, safe, @画师标签, 4koma, 1girl, 1boy.
A girl with red hair, blue eyes on the right top, straight-on portrait.
A ugly bastard on the right bottom, straight-on.
The girl with red hair and the man are face-to-face on the left top, profile from side.
heart hands duo on the left bottom, no humans.
负向 prompt:
sketch, oekaki, upper teeth only, worst quality, low quality, score_1, score_2, score_3, score_4, blurry, jpeg artifacts, sepia, watermark, logo, text, shaded face, blacklighting,
@画师标签, explicit, highres, cowboy shot, indoors,
A girl with long hair, eyelashes, red eyes holding a teacup with her right hand, wearing gray t-shirt is peeing to the teacup. pussy, standing, bowlegged pose. bottomless. Her right hand holding the cup is located on the bottom.
负向 prompt:
pov hand, sketch, oekaki, upper teeth only, worst quality, low quality, score_1, score_2, score_3, score_4, blurry, jpeg artifacts, sepia, watermark, logo, text, shaded face, blacklighting,impossible clothes, impossible underwear, covered navel,bad anatomy, bad hands, missing fingers, extra digits, fewer digits, artistic error,
@画师标签, (realistic:0.4), explicit, highres, outdoors,farm, 3girls, 3boys, pillory, stationary restraints, hanging breasts, orgy, vaginal sex, night.
Three women are restrained in a row.
A black long hair girl wearing a collar, a nipple tag on her left nipple is on the left.A silver long hair girl wearing a collar, a nipple tag on her left nipple is on the middle.A brown long hair girl wearing a collar, a nipple tag on her left nipple is on the right.
Three faceless fat bald ugly bastards sex with the girls.
负向 prompt:
sketch, oekaki, upper teeth only, worst quality, low quality, score_1, score_2, score_3, score_4, blurry, jpeg artifacts, sepia, watermark, logo, text, shaded face, blacklighting,thong, lowleg, g-string, impossible clothes, impossible underwear, covered navel,bad anatomy, bad hands, missing fingers, extra digits, fewer digits, artistic error,
@画师标签, (realistic:0.4), explicit, highres, 2girls, outdoors, onsen, partially underwater shot, bathing, steam, night.
Two girls sitting in the onsen side by side. The girls' bodies are underwater.
A girl with black hair, towel on head, blue eyes, :D, perky breasts, large areolae, pubic hair, nude is sitting on the left in the onsen. She is looking at the right side.
A girl with silver long hair, closed eyes, smile, perky breasts, large areolae, pubic hair, nude is sitting on the right in the onsen. She is looking at the left side.
负向 prompt:
sketch, oekaki, upper teeth only, worst quality, low quality, score_1, score_2, score_3, score_4, blurry, jpeg artifacts, sepia, watermark, logo, text, shaded face, blacklighting,thong, lowleg, g-string, impossible clothes, impossible underwear, covered navel,bad anatomy, bad hands, missing fingers, extra digits, fewer digits, artistic error,
@画师标签, masterpiece, best quality, sensitive, 6+girls, indoors.
There are many girls standing on either side of the red carpet. The girl in the front left with long hair, blue eyes is standing. The girl in the front right with white medium hair, red eyes is standing.
In the middle of the far away, there is a large dildo with a rainbow of colours growing out of a container on a table.
负向 prompt:
covered navel, navel, bar censor, sketch, upper teeth only, worst quality, low quality, score_1, score_2, score_3, score_4, blurry, jpeg artifacts, sepia, watermark, logo, text, shaded face, blacklighting,bad anatomy, bad hands, missing fingers, extra digits, fewer digits, artistic error,english text, engrish text, chinese text, korean text
@画师标签, sensitive, 1girl, (realistic:0.4), white background, mtu virus.
A girl wearing a school uniform, neck ribbon, pleated skirt is standing on the left.
A white pantis, upskirt from below on the right.
负向 prompt:
covered navel, sketch, upper teeth only, worst quality, low quality, score_1, score_2, score_3, score_4, blurry, jpeg artifacts, sepia, watermark, logo, text, shaded face, blacklighting,bad anatomy, bad hands, missing fingers, extra digits, fewer digits, artistic error,english text, engrish text, chinese text, korean text
同上 prompt,把描述改为 A detailed white pantis, upskirt from below on the right.(细节更丰富)
@画师标签, sensitive, 1girl, (realistic:0.4), white background, mtu virus.
A girl wearing a school uniform, neck ribbon, pleated skirt is standing on the left.
A detailed white pantis, upskirt from below on the right.
负向 prompt:
(同上)
技适女孩(技適ガール)
- anima-turbo-lora-v0.2
- ModelSamplingAuraFlow 的 shift:1.5
- steps: 20
@画师标签, (flat color:3), anime screenshot, masterpiece, best quality, highres, absurdres, 1girl, solo, cowboy shot, beige background, hand.
A girl with smile and medium black hair and blue colored inner hair and (blue eyes:2) and hairclip wearing (simple white turtleneck sweater:3) and short sleeves and off shoulder and simple purple sweater jacket and simple black high-waist medium skirt and necklace is standing.不带画师标签

sensitive, newest, year 2025, anime screenshot, bloom, 1girl, outdoors, school uniform
负向 prompt:
sketch, oekaki, upper teeth only, worst quality, low quality, score_1, score_2, score_3, score_4, blurry, jpeg artifacts, sepia, watermark, logo, text, shaded face, blacklighting有质量标签(masterpiece、score_9 等)就会变得像插画;想要动画风就去掉质量标签。

idolmaster cinderella girls, (official art:1.5), (game cg:1.5), (realistic:0.5), masterpiece, highres, safe, indoors, window.
takagaki kaede, mature, flat chest, shorts, pantyhose, dark green dress, fringe trim, mole under eye under her right eye, :D, off shoulder, three-quarter sleeves. She has heterochromia that her left eye is green and her right eye is blue.
负向 prompt:
sketch, oekaki, upper teeth only, 3d, bar censor, worst quality, low quality, score_1, score_2, score_3, score_4, blurry, jpeg artifacts, sepia, watermark, logo, text, shaded face, blacklighting能固定 heterochromia 的瞳色和痣的位置,很方便。
服装无法还原,需要用 LoRA 或编辑模型。

masterpiece, best quality, highres, safe, anime coloring, pale color, white background.
yvonne \(arknights\) , drill hair, hair on horn, blue eyes, pointy ears, hand on own chin, :D, skin fang
负向 prompt:
upper teeth only, worst quality, low quality, score_1, score_2, score_3, score_4, blurry, jpeg artifacts, sepia, watermark, logo, text, shaded face, blacklightingblue archive

blue archive, no halo, sensitive, 1girl, mature, skinny, indoors, highleg bikini
负向 prompt:
sketch, oekaki, upper teeth only, worst quality, low quality, score_1, score_2, score_3, score_4, blurry, jpeg artifacts, sepia, watermark, logo, text, shaded face, blacklighting
goddess of victory: nikke, official art, sensitive, 1girl, mature, skinny, indoors, highleg bikini
负向 prompt:
sketch, oekaki, upper teeth only, worst quality, low quality, score_1, score_2, score_3, score_4, blurry, jpeg artifacts, sepia, watermark, logo, text, shaded face, blacklighting用两段采样器(两段都用 Anima)生成。

masterpiece, best quality, absurdres, highres, year 2025, newest, safe, 1girl, (thick lineart:0.6),
mini hat, red medium hair, hair ornament, green eye, vest, white frilled shirt, detached sleeves, bare shoulders, frilled skirt, see-through dress layer, showgirl skirt, idol, singing, dynamic pose, head tilt, ;d, one eye closed, pointing at viewer, holding microphone.
spot lighting, stage, stage lights, screen, screen zoom. many glowsticks in the background.
foreshortening, blurry foreground, depth of field, glitter, chromatic aberration, bloom.
负向 prompt:
worst quality, low quality, score_1, lowres, old, bad anatomy, bad hands, missing fingers, extra digits, fewer digits, artistic error, (jpeg artifacts:1.2), sketch, signature, text, monochrome两段采样器(两段都用 Anima)生成。

- 模型:waiANIMA_v10Base10
- 官方 Turbo lora v0.2:strength 0.7
- ModelSamplingAuraFlow:0.5
- steps: 20 / cfg: 1 / sampler: euler
realistic, masterpiece, best quality, sensitive, indoors, cafe, (photo background:3) , pov across table.
// girlhoshimachi suisei with mole under mouth on the right and nail polish and smile and oppai challenge and puffy nipples and large areolae and a nipple piercing and (one breast out:2) and blue hair and skinny and wide hips wearing a hat and a choker and partially unbuttoned white frilled collared shirt and pants is sitting.
// foregroundThere is a cake and tea in a cup on the middle bottom. blurry foreground.
- 模型:MiaoMiao RealSkin
- 官方 Turbo lora v0.2:strength 0.7
- ModelSamplingAuraFlow:1
- steps: 20 / cfg: 1 / sampler: euler
very aesthetic, masterpiece, best quality, ultra-detailed, fair_skin, high contrast,huge filesize,
multiple views, sensitive, highres, absurdres, child, summer, beach, palm tree, beach umbrella, outdoors, (photo background:5).
A girl with blue eyes and long silver hair and twin braids and large breasts and one-piece tan and perky breasts and skinny and wide hips and sweat wearing a choker and highleg bikini is standing.
There is ass focus wearing highleg bikini panel on the top left.LoRA 训练
sd-scripts 已提供支持:
- The training script for the Anima model has already been implemented for sd-scripts #35
- Support Anima model #2260
- Add/modify some implementation for anima #2261
- feat(anima): add image-only 2D Qwen-Image VAE option #2382
- VAE 的编码/解码提速 2 倍,显存占用降至 1/3
训练方法官方文档写得很详细。
feat(anima): add image-only 2D Qwen-Image VAE option #2382
Qwen Image 是 Edit 模型,为了区分生成图、参考图和 prompt,其张量是三维的。Anima 不需要这个第三维,把 3D 卷积改成 2D,即可同时实现提速和降低显存占用。
官方 LoRA 训练建议
不要训练 LLM 适配器
LLM 适配器对生成图的影响力过大,不建议训练它。
使用较低的学习率
- rank 32 时从 2e-5 起步,再逐步调高
- 底模已经学过大量画风,画风学习不需要准备海量数据
Greg Rutkowski Style - Anima
官方画风 LoRA。共 153 张图。
caption 只用自然语言,不带 danbooru 标签。通过配置文件在 caption 前自动插入 @greg rutkowski.
caption 示例(自动插入画师名后)
image_00000.txt:
@greg rutkowski. A detailed digital painting capturing a bustling street scene in Victorian-era London. In the foreground, a distinguished man in a tall top hat and dark frock coat reads a newspaper, his focused expression mirroring the gravity of the news. To his right, a dynamic interaction unfolds: a gentleman in a top hat leans in to speak with a young newsboy, who holds up a paper with a hopeful smile. Nearby, a couple stands in conversation next to a large, weathered advertising pillar plastered with vintage posters for "Circus" and "Juliet." In the background, the hazy silhouette of St. Paul's Cathedral looms over the city, while horse-drawn carriages and pedestrians navigate the cobblestone street, all rendered in a rich, atmospheric palette of earthy browns, deep blues, and golden light.image_00001.txt:
@greg rutkowski. A cinematic, dark fantasy digital painting depicting a chaotic battlefield in front of a massive, imposing stone fortress. In the foreground, a warrior in heavy plate armor stands with his back to the viewer, sword drawn, facing a commanding figure perched atop a pile of rubble. The commander, draped in a flowing red cape and holding a tall banner, looks down with a stern expression.
The scene is filled with atmospheric tension, characterized by a muted, desaturated color palette punctuated by the fiery orange of scattered blazes and the deep red of war banners. Smoke and ash drift through the air, blurring the silhouettes of other soldiers and the jagged battlements of the castle in the background. The overall mood is one of grim determination and the brutal aftermath of a siege.image_00002.txt:
@greg rutkowski. A digital painting of a dark, ethereal fairy soaring through a sunset-lit sky. She has pale, greyish skin, long dark hair with crimson streaks, and pointed ears. She is dressed in a flowing, deep purple gown with gold filigree accents and long sleeves, with long ribbons of fabric trailing behind her in the wind. Translucent, shimmering wings extend from her back, catching the warm light of the horizon. In the background, a towering, ancient stone fortress rises through a haze of purple and gold clouds, adding to the mystical and dramatic atmosphere of the scene.其他工具
有成功报告的 LoRA 训练工具还有 diffusion-pipe。
分层合并・应用
- DanrisiUA/ComfyUI-LoRA-Block-Filter
- iron-mukakin/Animerge
模型
- Any Anima (for LoRA training)
Anima 文本编码器的规格
双分词器(T5XXL + Qwen3 0.6b)+ 单文本编码器(Qwen3 0.6b)
Anima 用 Qwen3 0.6b 和 t5xxl 两个分词器对 prompt 分词,然后都用 Qwen 3 0.6b 编码、生成两份 embeddings,拼接后输入 DiT。
- [1]: comfy/text_encoders/anima.py, tokenize_with_weights
- [2]: comfy/text_encoders/anima.py, encode_token_weights
- [3]: comfy/samplers.py, calc_cond_batch, cond_cat
强调语法
comfy/text_encoders/anima.py 的 AnimaTokenizer.tokenize_with_weight() 会把 Qwen 3 0.6b 的权重重置为 1.0,但 t5xxl 的分词器仍在工作,所以 (标签:2) 这类强调语法依然有效。
上下文长度上限
Qwen3 0.6b 的上限是 32,768 token(Qwen3_06BConfig)。由于是双分词器,实际上限是其一半的 16,384。常规 prompt 绝对到不了这个上限。
comfy/ldm/anima/model.py
def preprocess_text_embeds(self, text_embeds, text_ids, t5xxl_weights=None): if text_ids is not None: out = self.llm_adapter(text_embeds, text_ids) if t5xxl_weights is not None: out = out * t5xxl_weights
if out.shape[1] < 512: ...其他信息
各轻量模型的文本编码器
| 模型 | Z-Image (Turbo) | FLUX.2 Klein | Newbie(Lumina-Image 系) | Netayume(Lumina-Image 2.0) | Anima(Cosmos-Predict2-2B) |
| 文本编码器 | Qwen 3 | Qwen 3 | Gemma 3 | Gemma 2 | Qwen 3 |
| 文本编码器参数量 | 4B | 4B | 4B | 2B | 0.6B |
据 circlestone-labs/Anima 的许可证,Anima 是 NVIDIA Cosmos-Predict2-2B-Text2Image 的衍生模型。
文本编码器换成了 Qwen3 0.6B,VAE 用 Qwen-Image VAE。而 Cosmos-Predict2-2B-Text2Image 原本的文本编码器是 T5XXL,VAE 是 Wan2.1 VAE。
nvidia/Cosmos-Predict2-2B-Text2Image
出处:Arslan Ali et al. World Simulation with Video Foundation Models for Physical AI
这是一个面向机器人强化学习的模型。训练数据集是 2 亿条精选视频片段,涵盖自动驾驶(行驶场景)、机器人物体操作、空间导航、人与人的交互、自然风景等(2.1 Video Curation Pipeline)。
文本编码器只用 T5 XXL 的编码器,参数量约 4.7B。SD3 用的也是同一个文本编码器。
VAE 为 Wan-AI/Wan2.1-T2V-1.3B-Diffusers。
推荐 prompt 在 300 词以内,基础分辨率 1280 x 704(720 不能被 64 整除,舍去零头取 11 x 64 = 704)。
原文
- 标题:【NSFW 注意】ComfyUI で circlestone-labs の Anima を使う
- 作者:dskjal
- 原文链接:<https://dskjal.com/deeplearning/circlestone-labs-anima>