如何为FLUX LoRA写出好提示词:flux-lora-collection的AI绘图Prompt实战技巧
【免费下载链接】flux-lora-collection项目地址: https://ai.gitcode.com/hf_mirrors/XLabs-AI/flux-lora-collection
flux-lora-collection 是专为 FLUX.1-dev 模型训练的一组风格 LoRA 集合,覆盖动漫、迪士尼、风景、写实等主流 AI 绘图风格。本文手把手教你为 FLUX LoRA 写出好提示词(Prompt),配合 7 款风格模型快速出图,新手也能一次上手。🎨
认识 flux-lora-collection:7 款风格 LoRA 快速上手
仓库中每个风格都提供两个模型文件:
- 原始版:如
anime_lora.safetensors,用于官方推理脚本 - ComfyUI 版:如
anime_lora_comfy_converted.safetensors,专为 ComfyUI 工作流转换
| 模型文件 | 风格方向 | 提示词技巧 |
|---|---|---|
anime_lora.safetensors | 日系动漫 | 结尾加 "anime" |
art_lora.safetensors | 艺术插画 | 结尾加 "art" |
disney_lora.safetensors | 迪士尼梦幻风 | 结尾加 "disney style" |
scenery_lora.safetensors | 宏大风景 | 结尾加 "scenery style" |
mjv6_lora.safetensors | 摄影级人像 | 自然描述,突出光影 |
furry_lora.safetensors | Furry 兽设 | 结尾加 "furry" |
realism_lora.safetensors | 写实摄影 | 自然描述,加摄影术语 |
💡 小贴士:LoRA 本身负责"风格",提示词负责"内容"。两者配合得好,出图质量才会稳定。
写好提示词的万能公式:主体 + 细节 + 风格词
观察官方示例(见 README.md 中的 Inference 章节),所有成功的 Prompt 都遵循同一个结构:
主体(谁/什么) + 细节描述(场景、动作、颜色、氛围) + 风格词(可选)
- 主体:一句话说清画什么,避免堆砌无关名词
- 细节:颜色、年龄、材质、天气、光线都可以写,越具体越稳定
- 风格词:不同 LoRA 有约定俗成的触发词,写在结尾最保险
7 大风格逐个练手:Prompt 实例拆解
1. anime:日系动漫风
"A cute corgi lives in a house made out of sushi, anime"
一条短 Prompt 就能生成"住在寿司房子里的柯基"。人物类可以补充发色与场景,例如:"a girl with orange hair, standing in a room with a window, looking out at a cityscape, anime"。记住结尾的 "anime" 触发词。
2. disney:迪士尼梦幻风
"A blue jay standing on a large basket of rainbow macarons, disney style"
适合明亮、可爱的主体。多用糖果色词汇(rainbow、macarons、bright),结尾固定 "disney style"。🍬
3. scenery:宏大风景
"A fantasy cityscape with multiple buildings and skyscrapers all of which are covered in snow and ice, scenery style"
风景 LoRA 吃"细节量":建筑数量、覆盖物(雪/冰/绿植)、光照(statues 前的火焰)都值得写,结尾加 "scenery style"。
4. art:艺术插画
"white rabbit in blue dress and hat holding bow and arrow, art"
童话角色 + 配色方案是绝配(蓝裙白兔、弓箭)。Prompt 越像"绘本描述",效果越棒。
5. mjv6:摄影级人像
"A handsome man in a suit, 25 years old, cool, futuristic"
模仿 Midjourney V6 的质感。描述中建议包含:年龄、服装、气质词(cool)、氛围(futuristic)。进阶可写发色与光色,如 "turquoise & light orange" 这样的撞色描述。📸
6. furry:Furry 兽人设定
"Female furry Pixie with text 'hello world'"
结构建议:性别 + 种族/特征 + 细节。还可用长 Prompt 强化氛围:"howling at the full moon, surrounded by eerie mist, werewolf transformation",结尾加 "furry"。
7. realism:写实摄影
官方示例较少,推荐用摄影语言描述:"A close-up photo of an elderly fisherman with weathered skin, natural light"。景别(close-up)、光线(natural light)等术语能显著提升真实感。
推理参数推荐设置
官方脚本默认参数已调得很稳,新手直接照抄即可:
- 分辨率:1024 × 1024
- 采样步数:25
- 引导强度(true_gs / guidance):约 3.5 ~ 4
参考命令(以 anime 为例):
python3 main.py \ --prompt "A cute corgi lives in a house made out of sushi, anime" \ --lora_repo_id XLabs-AI/flux-lora-collection --lora_name anime_lora.safetensors \ --device cuda --offload --use_lora --model_type flux-dev-fp8 \ --width 1024 --height 1024新手常见问题:LoRA 风格没生效怎么办?
| 症状 | 原因 | 解决办法 |
|---|---|---|
| 出图像原模型 | 没加载 LoRA 或加载了错误文件 | 确认 ComfyUI 用_comfy_converted版本 |
| 风格不明显 | 缺风格触发词 | 按上表在结尾补 "anime" / "art" 等 |
| 画面扭曲崩坏 | 强度过高 | 适当调低 LoRA 权重 |
| 出图与描述不符 | Prompt 过长或自相矛盾 | 精简到 3~5 个核心描述 |
延伸:想训练自己的 LoRA?
训练数据格式为images/目录下每张图片配一个同名.json文件,json 中含caption字段(即文字提示词)。看懂这个格式,你就理解了为什么"提示词质量"决定了 LoRA 的上限。
总结
写好 FLUX LoRA 提示词的三步口诀:选对风格模型 → 按"主体 + 细节 + 风格词"写 Prompt → 用官方参数出图。把 7 款 LoRA 各试一个例子,你就能形成自己的 Prompt 手感。🚀
【免费下载链接】flux-lora-collection项目地址: https://ai.gitcode.com/hf_mirrors/XLabs-AI/flux-lora-collection
创作声明:本文部分内容由AI辅助生成(AIGC),仅供参考