技能创建器
skill-creator
创建、改进和评估自定义技能,把专业流程转化为可重复使用的 AI 能力。
data-preparation【数据与研究】Prepare and validate KAIR-compatible image, video, LMDB, and meta-info datasets without mutating source data.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Use this sub-skill when the task is to prepare, inspect, or explain KAIR dataset inputs before training or testing. It covers image folders, paired LQ/GT data, video clip folders, Vimeo90K sequence folders, meta-info files, subimage plans, and LMDB plans.
Do not use this sub-skill for model command ownership. Route image training to ../image-training/SKILL.md, image inference to ../image-testing/SKILL.md, and VRT/RVRT model commands to ../video-restoration/SKILL.md; return here only for dataset layout, meta-info, or conversion questions.
references/data-layouts.md — train/test folder conventions, video layouts, meta-info formats, LMDB structure, and the dataset_type mapping.references/data-preparation-workflows.md — safe plans for DIV2K subimages/LMDBs, REDS, DVD, GoPro, UDM10, DAVIS, Vimeo90K, Set8, and MATLAB-only steps.references/troubleshooting.md — empty datasets, LQ/GT mismatches, existing output exits, destructive scripts, missing meta-info, LMDB conflicts, libpng fallback, and multiprocessing memory issues.Run these from any machine with Python 3; they do not import KAIR and do not write data.
python sub-skills/data-preparation/scripts/check_dataset_layout.py --help
python sub-skills/data-preparation/scripts/check_dataset_layout.py image --root trainsets/trainH
python sub-skills/data-preparation/scripts/check_dataset_layout.py video --root testsets/REDS4/sharp_bicubic --paired-root testsets/REDS4/GT
python sub-skills/data-preparation/scripts/check_dataset_layout.py lmdb --root trainsets/REDS/train_sharp_with_val.lmdb
python sub-skills/data-preparation/scripts/plan_lmdb_conversion.py --dataset div2k
python sub-skills/data-preparation/scripts/plan_lmdb_conversion.py --dataset reds
references/data-preparation-workflows.md#div2k-subimages-and-lmdbs, then scripts/plan_lmdb_conversion.py --dataset div2k.references/data-layouts.md#video-folder-layouts and scripts/check_dataset_layout.py video on both LQ and GT roots.references/troubleshooting.md#empty-dataset-or-no-images-found and check folder depth, extensions, and folder_lq/folder_gt pairing.references/data-preparation-workflows.md#gopro-video-deblurring-layout; warn that the original regrouping script moves folders and deletes the original train/test folders.references/data-layouts.md#dataset_type-mapping.