fix(detector): 移除 ongoing_actions/visible_entities 空字段检测 + 新增 repair sh
抽检确认这两个字段为空是合法内容状态(静物/黑帧/模糊帧), VLM 重修也修不好,保留会导致断点续跑死循环。 L3 空字段检测缩减为 frame_summary + spatial_layout。
This commit is contained in:
@@ -40,7 +40,8 @@ def detect_issues(
|
||||
"""扫描树,返回所有问题节点列表。
|
||||
|
||||
检查项:
|
||||
- L3: card 必填字段为空(frame_summary / visible_entities / ongoing_actions / spatial_layout)
|
||||
- L3: card 必填字段为空(frame_summary / spatial_layout)
|
||||
- 注: visible_entities / ongoing_actions 为空是合法状态(静物/黑帧),不纳入检测
|
||||
- L3: frame_path 对应文件不存在(需提供 frames_dir)
|
||||
- L2: event_description 为空
|
||||
- L2/L1: children 列表为空
|
||||
@@ -108,14 +109,10 @@ def detect_issues(
|
||||
continue
|
||||
|
||||
for l3 in l2.children:
|
||||
# L3: 各必填字段不为空
|
||||
# L3: 核心必填字段不为空(visible_entities/ongoing_actions 为空是合法状态)
|
||||
empty_fields: list[str] = []
|
||||
if not l3.card.frame_summary:
|
||||
empty_fields.append("frame_summary")
|
||||
if not l3.card.visible_entities:
|
||||
empty_fields.append("visible_entities")
|
||||
if not l3.card.ongoing_actions:
|
||||
empty_fields.append("ongoing_actions")
|
||||
if not l3.card.spatial_layout:
|
||||
empty_fields.append("spatial_layout")
|
||||
if empty_fields:
|
||||
|
||||
Reference in New Issue
Block a user