Community图像github.com

FilmForge 帧质检

逐幅全尺寸检查画作与角色设定表和连续性台账的对应关系,通过工具测量色彩规则、调色板和曝光,依据九项评分准则打分并裁决:通过、在代码中修复或重绘。

FilmForge 帧质检 是什么?

FilmForge帧质检是一项专用于AI生成视频帧(画作、静帧、关键帧、角色设定表或书页)的自动化质量控制技能。它不依赖于缩略图,而是全尺寸检查每幅图像,通过工具(contact_sheet、ledger.py)进行接触页生成、局部放大、色彩规则与曝光测量,再依据九项准则(身份、解剖、比例、风格、色彩、连续性、故事、构图、清洁度)打分,最后根据裁决规则决定:通过(免费)、在代码中修复(免费,并给出精确模块和参数)或重绘(消耗2.75积分,附带完整修正提示)。该技能适用于所有需要图像模型输出的场景,确保最终成片质量,并已在真实制作中积累了大量实战案例,如比例错误、色彩泄漏、多余人物等常见问题的修复与重绘决策。支持平台包括Claude Code等AI代理工具,通过本地脚本和配置运行。

兼容平台~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/gallowforge/filmforge/tree/HEAD/skills/forge-frame-qa

Installed? Explore more 图像 skills: steipete/songsee, affaan-m/frontend-design, mattpocock/improve-codebase-architecture · View all 6 →

在你喜欢的 AI 中提问

打开一个已预加载此 Agent Skill 的新对话。

文档

FilmForge 帧质检 是做什么的?

成片中没有一幅画是靠缩略图通过的。每幅画作须以全尺寸对照其设定表,通过工具测量、评分,并给出三种裁决之一。裁决总会说明下一步操作及其成本:通过(免费)、在代码中修复(免费,附带精确调用)、或重绘(2.75 积分,附带修正后的提示)。

路径:下面的 scripts/、templates/ 和 config/ 是本技能内的文件夹(加载时显示的基准目录),由 ./install.sh 放置。如果从仓库克隆工作,则它们位于仓库根目录下的 tools/、templates/ 和 config/。

流程

  1. 接触页 批次,以便将其视为序列(相邻画作能否剪辑在一起?): python3 scripts/contact_sheet.py build art/film --shotlist shotlist.yaml --out out/contact_sheet.jpg
  2. 全视图 每幅画作(读取图像本身,而非缩略图)。
  3. 100% 局部放大 关键区域:面部、手部、比例关键主体、任何小物体。 python3 scripts/contact_sheet.py zoom art/film/s03_x.png --out-dir out/zoom --grid 2x2 或 --box x0,y0,x1,y1。 图像阅读器会缩小大图像;局部放大显示真实像素。
  4. 测量 色彩规则、调色板和曝光: python3 scripts/ledger.py palette continuity.yaml --paintings art/film --shotlist shotlist.yaml 它会报告每幅画作的调色板、与场景色彩脚本的色差(delta E)、每个禁止色彩规则在画面中的占比,以及同一场景相邻镜头之间的曝光跳变(以档为单位)。
  5. 评分 准则(见下文):九项标准,0 到 2 分。
  6. 裁决 按照以下规则。
  7. 写入 qa.yaml 中的条目(格式如下),然后用 --qa qa.yaml 重建接触页以显示徽章。
  8. 报告:裁决计数、每项修复和重绘各用一行说明、重绘所需的积分。

评分准则(templates/qa-rubric.md 包含评分锚点)

准则检查内容
身份面部与服装标记与设定表对比
解剖焦点主体上的手、眼、肢体
比例每项比例锁定和计数(在局部放大图中测量像素)
风格视觉锁定:媒介、线条、色彩、纹理
色彩色彩脚本和禁止规则(来自 ledger.py palette)以及与相邻镜头的曝光
连续性台账为该镜头列出的每个道具和状态,且不超出其范围
故事节拍在两秒内可读
构图划定的构图,视线落在主体上,文字区域平静
整洁无手绘文字、水印、污迹或多余人物

测量比例: 在局部放大图中,测量主体及其参照物的像素,并与比例锁定值比较。引擎示例:蛾在 60 像素手指上占 20 像素,而比例锁定要求一整只张开的手(该构图下 120 像素或以上):其尺寸的六分之一,比例 0 分,重绘。

裁决规则

  • 通过:无任何准则得 0 分,总分 15/18 或以上,无测量违规。
  • 修复:每项故障都有代码修复(下表),且身份、比例或故事准则未得 0 分。
  • 重绘:身份、比例或故事得 0 分;焦点主体解剖得 0 分;风格得 0 分;或存在三项或以上故障。

在积分消耗前通过代码修复(painted-film-pipeline 模块)

故障模块和调用
某个物体色相错误(例如围巾让配角被误认为主角)grade.py IN OUT recolor:x0:y0:x1:y1:lo:hi:new_hue:sat
禁止色彩泄漏(例如蓝色在结局前出现)grade.py IN OUT blue:0.3(将该色带拉向银色;keep=0.3)或使用 recolor 改为允许的色相
空白区域出现多余人物从偏移的干净区域修补(fix_s22.py 模式)
不佳构图、切线、头部空间不当镜头的 crop: [x0, y0, x1, y1](以源像素为单位)
曝光或对比度与相邻镜头不匹配自动处理:匹配校色将每个图版的 0.5% 和 99.5% 百分位亮度映射到共同目标
细节模糊自动处理:仅对边缘进行 Lanczos 4K 放大和锐化
画面缺乏活力通过代码添加运动(forge-motion),绝不重绘

每项修复会写入一个新文件(_g),重新测量,只有当测量通过时才会标记 done: true。 详情和参数含义:参见 references/code-fixes.md。

重绘:诊断,然后修正

将原因命名为提示槽位或参考项:“比例锁定从插槽 4 中缺失”、“设定表顺序错误”、“视觉描述被转述”。完整写出修正后的提示,检查预算,然后交给 forge-painter。如果原因会影响其他镜头(例如台账中缺少锁定),请说明:这是引擎变更,而非一次重绘。

qa.yaml 条目格式

  - shot: s02
    file: art/film/s02_last_match.png
    checked: [full frame, zoom 2x2 at 100%, ledger palette]
    scores: {identity: 1, anatomy: 2, scale: 2, style: 2, colour: 0, continuity: 2, story: 2, composition: 2, clean: 2}
    total: 15
    max: 18
    measured: {no_gold_pct: 4.4, script_dE: 5}
    verdict: fix
    notes: 火柴的金色光辉覆盖了 4.4% 的画面(规则在 s05 之前允许 2%),并使兜帽染色。
    fix:
      problem: 金色光辉,色相 38 至 58
      module: painted-film-pipeline pipeline/grade.py (recolor)
      call: python grade.py s02_last_match.png s02_last_match_g.png recolor:250:250:700:650:38:58:22:0.8
      params: {box: [250, 250, 700, 650], hue_band: [38, 58], new_hue: 22, sat: 0.8}
      why_not_repaint: 仅一个框内的单个色带
      verify: ledger.py palette 显示 _g 文件上 no-gold 低于 2.0%;兜帽显示 100% 红色
      done: false

重绘条目应包含 repaint: {cause, prompt_changes, credits, corrected_prompt} 而不是 fix。

真实制作中的实际发现

  • 比例(重绘): 五帧 Simorgh 画面中,戴胜鸟在女孩旁边画得太小(s21、s25、s33、s36、s39)。代码无法令人信服地放大已绘制的对象;这些画面被安排以其真实大小重绘,原因(提示或设定表中缺少比例比)成为了一个引擎规则。
  • 色彩(修复): 蓝色在结局前渗入画面;通过将色带拉向银色在代码中修复。
  • 通过色彩识别身份(修复): 配角的围巾与主角颜色相同,导致他被误认为主角;通过在一个框内进行色相重新着色将其改变。
  • 多余人物(修复): 一帧安静画面中多出的绘制人物通过从偏移的干净区域进行修补被移除。
  • 图画书的门: 面部与参考匹配;正确的视觉风格和色彩脚本颜色;文字区域非常平静;页面的母题存在;它让你感受到它所在文本行的情绪。一项失败,则重做。

绝不要

  • 仅凭缩略图或接触页就通过。
  • 重绘代码能修复的内容,或通过代码“修复”会破坏故事的内容。
  • 放过一幅测量规则失败的作品,即使它看起来没问题。

门控清单(针对批次)

  • 每幅画作全尺寸读取,并对面部、手部和比例关键主体进行局部放大
  • ledger.py palette 已运行;每项错误都在裁决中解释
  • 每幅画作在 qa.yaml 中都有包含分数、裁决和下一步操作的条目
  • 接触页已重建并显示徽章且已检查

参考

  • references/code-fixes.md:每项修复的参数、如何选择以及如何验证

Individual skills in this repo

This repo contains 4 individual skills — each has its own dedicated page.

gallowforge/forge-director

FilmForge director: runs an AI film production end to end (story, style lock, score, paintings, frame QA, motion in code, sound, delivery, archive) through stage gates, so no credit is spent before its gate passes. Keeps the production state file (production.yaml) and the credit ledger, prices the plan against the credits, and always names the one next action. Use this skill whenever the user wants to make, plan, budget, continue or check on a short film, painted film, animated story, music...

gallowforge/forge-motion

FilmForge motion: plans each shot's life in code instead of credits (painted holds brought alive with drifting fog, ash, snow, rain, embers, glints, light sweeps, firelight flicker, heat shimmer, shake, lightning, glass cracks, transitions, golden threads, handwritten words and titles), maps every effect to the painted-film-pipeline renderer's exact parameters, applies frame-QA code fixes, exports the edit timeline and renders the preview; decides when paid video is worth its credits. Use...

gallowforge/forge-painter

FilmForge painter: writes every shot's image prompt from the shot list, the character sheets and the style lock, on a fixed twelve-slot order with continuity anchors (handles, anchors, scale locks, props, states, forbidden-colour clauses); keeps the continuity ledger; lints every prompt before a credit is spent; paints in batches of four and hands each batch to frame QA. Use this skill whenever the user wants image prompts for a film's shots or a picture book's pages, storyboard frames,...

gallowforge/forge-style-lock

FilmForge style lock: fixes one image model and setting, one look sentence (or two when the drawing itself carries the story), the palette and colour rules, the line, brush and lens language, the character-sheet specs with scale bars, and the prompt grammar every shot must follow, so every painting in a film or book matches. Use this skill whenever the user starts the visual side of a film, music video or picture book, wants consistent characters or one consistent look across many images,...

相关技能