技能创建器
skill-creator
创建、改进和评估自定义技能,把专业流程转化为可重复使用的 AI 能力。
training-and-datasets【数据与研究】Prepare, validate, adapt, and troubleshoot ControlNet training datasets and tutorial training workflows for SD1.5 and SD2.1.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Use this sub-skill when the task is about preparing a ControlNet training dataset, validating Fill50K-style rows, writing a custom PyTorch Dataset, adapting the tutorial training pattern for SD1.5 or SD2.1, tuning training knobs, or debugging dataset/training startup failures.
Do not use this sub-skill for image-generation UI workflows, checkpoint-conversion internals, or detector preprocessing. Route those requests to:
prompt.json, row keys, image paths, image readability, shape consistency, and tutorial normalization ranges without importing ControlNet or starting training.jpg is the RGB target image normalized to [-1, 1], hint is the RGB control/source image normalized to [0, 1], and txt is the prompt string.models/cldm_v15.yaml and an initialized control_sd15_ini.ckpt; adapt SD2.1 training with models/cldm_v21.yaml and an initialized control_sd21_ini.ckpt or equivalent.batch_size=1 to 4, learning_rate=1e-5, sd_locked=True, only_mid_control=False) and add gradient accumulation or low-VRAM mode only after the dataset and checkpoint load cleanly.Dataset, checking prompt.json schema, or confirming jpg/txt/hint ranges.From any working directory, point the validator at the dataset root that contains prompt.json, source/, and target/:
python path/to/training-and-datasets/scripts/validate_fill50k_dataset.py --dataset-root path/to/training/fill50k --max-items 100
Use --max-items 0 for a full scan before a long training job. Use --write-example-fixture path/to/tmp-fill50k --validate-written-fixture to create and validate a tiny self-contained fixture without network access, checkpoint loading, image generation, or training.