技能创建器
skill-creator
创建、改进和评估自定义技能,把专业流程转化为可重复使用的 AI 能力。
kair【数据与研究】Repo-specific operating skill for KAIR image/video restoration: training configs, image testing, VRT/RVRT video workflows, dataset preparation, model downloads, and environment checks.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Use this skill when a user asks for help operating the KAIR repository (cszn/KAIR) for image restoration, super-resolution, denoising, deblurring, face enhancement, SwinIR, VRT/RVRT, dataset preparation, model-zoo checkpoints, or KAIR option JSONs.
This is a repository-specific operating graph. Do not ask the user to inspect the original KAIR source for normal routing; use the bundled references and sub-skills first. When native execution is requested, assume the user has a KAIR checkout and run KAIR scripts from the checkout root.
| User task | Load this sub-skill/reference |
|---|---|
Train an image model, edit/validate KAIR option JSON, choose model/dataset_type/netG, DDP launch, resume/fine-tune | sub-skills/image-training/SKILL.md |
| Run image denoising/SR/deblocking/deblurring/face-enhancement/challenge inference, choose checkpoints, build SwinIR/DnCNN commands | sub-skills/image-testing/SKILL.md |
Run or train VRT/RVRT video SR, deblurring, denoising, frame interpolation, task IDs 001-009 or 001-006, video tiling/OOM | sub-skills/video-restoration/SKILL.md |
| Prepare datasets, check trainsets/testsets layout, plan subimages, LMDBs, REDS/Vimeo/DVD/GoPro/DAVIS/UDM10/Set8 data | sub-skills/data-preparation/SKILL.md |
| Check Python/CUDA/toolchain readiness | references/setup-and-environment.md and scripts/kair_check_environment.py |
| Download or locate model-zoo checkpoints | references/model-zoo-and-downloads.md and scripts/kair_download_models.py |
| Diagnose cross-cutting failures | references/troubleshooting.md |
KAIR is a source-script repo. From a KAIR checkout root, use an isolated Python environment and install public dependencies before native script execution:
python -m pip install -U pip setuptools wheel
python -m pip install -r requirement.txt
python -m pip install ninja
python -m pip check
python skills/disco/kair/scripts/kair_check_environment.py --kair-root .
For VRT/RVRT or face-enhancement custom-op work, require CUDA-capable PyTorch plus a CUDA toolkit and run the custom-op preflight from references/setup-and-environment.md before claiming full backend readiness.
Read these root references before giving broad KAIR setup or checkpoint advice:
references/repo-provenance.md documents the source anchor, inspected evidence, included scope, and construction boundaries.references/setup-and-environment.md explains the source-script install pattern, backend requirements, CUDA/custom-op checks, and safe parser probes.references/model-zoo-and-downloads.md maps checkpoint groups, destination conventions, URL families, and auto-download caveats.references/troubleshooting.md is the cross-skill troubleshooting index.references/repo-routing-metadata.json contains router-facing scenario tags and entry-point ownership.Bundled helper scripts are dry-run or read-only by default:
scripts/kair_check_environment.py checks imports, PyTorch CUDA, optional KAIR source imports, and optional custom-op imports.scripts/kair_download_models.py prints checkpoint URL/destination plans by default and downloads only with --execute.Treat backend verification as task-specific:
nvcc, and ninja.If a user asks for auto-import or publication, do not import this skill unless final verification has passed and backend gates match the intended use. The production request for this graph explicitly disabled import.
task, path.root, gpu_ids, --nproc_per_node, dataset roots, model, dataset_type, and netG.net_type are aligned.--sigma if denoising, and whether metrics are possible.The skill was generated from live source inspection and private environment probes. It intentionally did not run full KAIR training, full inference, destructive data preparation, or MATLAB evaluation during construction. Final publication/auto-import requires the verification artifacts under skills/tests/kair/ to pass.