技能创建器
skill-creator
创建、改进和评估自定义技能,把专业流程转化为可重复使用的 AI 能力。
data-preparation【数据与研究】Prepare and validate OpenFlamingo data artifacts for MMC4/LAION training and VQA-style evaluation, including MMC4 WebDataset conversion and VQAv2/VizWiz result filling.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Use this sub-skill when a task involves preparing or checking OpenFlamingo-compatible data before training or evaluation. It covers:
json payload.Do not assume that full model downloads, full benchmark datasets, training, or benchmark evaluation have already been run. Treat those as expensive/network/data-dependent steps that require explicit user-provided data and runtime capacity.
scripts/validate_open_flamingo_data.py: safe preflight validator for MMC4 JSON/JSONL/ZIP metadata, VQA prediction lists, and WebDataset tar path naming.scripts/convert_mmc4_to_wds.py: standalone MMC4 ZIP + image-directory to WebDataset tar converter.scripts/fill_vqa_testdev_results.py: standalone VQAv2/VizWiz result filler with answer normalization and input validation..txt plus one of .jpg, .jpeg, .png) and pass matching shard braces to the training command.--mmc4_shards.example, image_map, and base64 images keyed by placeholders such as _!_IMAGE1_!_.questions and annotations JSON files as described in Data formats; the bundled result filler is only for VQAv2 and VizWiz final/test-dev style outputs.python scripts/validate_open_flamingo_data.py --help
python scripts/convert_mmc4_to_wds.py --help
python scripts/fill_vqa_testdev_results.py --help
For a small prediction file:
python scripts/validate_open_flamingo_data.py \
--mode vqa-predictions \
--input-path predictions.json \
--max-records 100
For a small MMC4 metadata sample:
python scripts/validate_open_flamingo_data.py \
--mode mmc4-json \
--input-path shard_0.zip \
--max-records 50