output-validation
Run (not just plan) a local self-check of the generated JSON and NPZ outputs for format, consistency, and CSR integrity.
- License 许可
- Apache-2.0
- 最近更新
- 2026-11-14
- Stars
- ★ 0
- Forks
- 1
01 前言 Front Matter
- name
- output-validation
- description
- Run (not just plan) a local self-check of the generated JSON and NPZ outputs for format, consistency, and CSR integrity.
03 SKILL.md 正文
Steps
- After writing
/root/pred_instructions.jsonand/root/pred_dyn_masks.npz, execute a validation script (e.g., a small Python snippet) and observe it completes with no assertions/errors. - Load both outputs:
j = json.load(open("/root/pred_instructions.json"))npz = np.load("/root/pred_dyn_masks.npz")
- Validate JSON structure:
- Each key matches
"{start}->{end}"with integerstart,end. - Each value is a non-empty list of strings.
- Each label is in
{Stay, Dolly In, Dolly Out, Pan Left, Pan Right, Tilt Up, Tilt Down, Roll Left, Roll Right}.
- Each key matches
- Validate sample-index coverage (half-open):
- Determine sampled frame count
Sfrom the NPZ keys (count consecutivef_{i}_datastarting ati=0). - Ensure JSON intervals exactly cover
[0, S)with no gaps/overlaps, and0 <= start < end <= Sfor each interval.
- Determine sampled frame count
- Validate NPZ structure:
shapeexists and is[H,W](int-like).- For every
i in [0, S), the keysf_{i}_data,f_{i}_indices,f_{i}_indptrall exist.
- Validate CSR integrity for at least one frame (and ideally all):
len(indptr) == H + 1indptr[-1] == indices.size == data.sizeindicesare within[0, W)(or empty)
- Reporting rule: only claim “validated” in the final response if you actually ran the validation and observed success; otherwise state validation was not run.
Expected Result
You have an observed (executed) validation run confirming the JSON interval mapping is well-formed and covers [0,S), and the NPZ contains consistent per-frame CSR masks with the declared shape.
04 同仓库更多 Skills
video-frame-extraction
Extract frames from video files and save them as images using OpenCV
openai-vision
Analyze images and multi-frame sequences using OpenAI GPT vision models
image-ocr
Extract text content from images using Tesseract OCR via Python, including structured field extraction from receipts and forms
video-frame-extraction
Extract frames from video files and save them as images using OpenCV
openai-vision
Analyze images and multi-frame sequences using OpenAI GPT vision models
image-ocr
Extract text content from images using Tesseract OCR via Python, including structured field extraction from receipts and forms