Files
nexus/wiki/concepts/StyleLock.md
2026-05-03 05:42:12 +08:00

2.1 KiB
Raw Blame History

title, type, tags, last_updated
title type tags last_updated
StyleLock concept
prompt-engineering
ai-image
consistency
quality-control
2026-05-01

Definition

Style Lock风格锁定块是 AI 图片生成质量控制机制——在每个提示词末尾加强制的风格比对检查清单,要求在生成前逐项验证与上一张图片的风格参数是否完全匹配,偏差即触发重生成。

Mechanism

Style Lock 通过以下方式工作:

  1. 复制前一张图片的完整 Style Seed
  2. 添加逐项检查清单Checklist要求生成前验证每个风格参数
  3. 强化约束指令If ANY element does not match, regenerate with corrections
  4. 视觉反馈:通过 hex 色值、纹理描述、线条质量等具体参数减少模糊性

Sample Template

== STYLE LOCK — MANDATORY ==

This card MUST follow the EXACT same chalkboard style as the 
previously generated card. Do not deviate.

Checklist — verify these match the previous card BEFORE generating:
□ Background color: #1C2B1C (dark green-black chalkboard)
□ Chalk texture: subtle scratches, dust, eraser smudges
□ Line quality: hand-drawn, imperfect, sketchy wobble — NO perfect vectors
□ Color hex values: #F5F5F5 (white), #FFE566 (yellow), ...
□ Frame: wooden border with hand-drawn wood grain
□ Doodles: stars, underlines, arrows, circles — all chalk-drawn
□ Typography: chalk lettering, imperfect baseline

If ANY element does not match, regenerate with corrections.

Consistency Rating

Method Consistency Complexity
Style Seed only ★★★★☆ Low
Style Seed + Style Lock ★★★★★ Medium-High
Reference Image + Style Lock ★★★★★ Medium
All methods combined ★★★★★ Medium-High

Relationship to Style Seed

  • StyleSeed:定义风格参数(正面锚定)
  • StyleLock:强制比对上一张参数(反向验证)
  • 两者组合使用:开头用 Style Seed 锚定正面目标,末尾用 Style Lock 验证反面偏差

Sources