技能创建器
skill-creator
创建、改进和评估自定义技能,把专业流程转化为可重复使用的 AI 能力。
data-preparation【数据与研究】Prepare, validate, and troubleshoot sd-scripts training data before LoRA, fine-tuning, Textual Inversion, ControlNet, or inpainting training.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Use this sub-skill when a user needs to build or debug sd-scripts dataset inputs before launching training. It covers dataset TOML files, DreamBooth directory subsets, fine-tuning metadata JSON/JSONL, captions/tags, validation splits, bucketing/resolution choices, cached latents/text-encoder outputs, and safe data sanity checks.
Route actual training commands to ../training. Route generation prompt files to ../generation. Route LoRA merge/convert or checkpoint utilities to ../model-utilities.
[[datasets]] block:
image_dir and no metadata_file.metadata_file; image_dir is required when metadata paths are relative.image_dir and conditioning_data_dir.[general], dataset-level shape/batch/bucket settings in [[datasets]], and directory/metadata-specific settings in [[datasets.subsets]].python skills/sd-scripts/sub-skills/data-preparation/scripts/validate_dataset_inputs.py --dataset-config dataset_config.toml
../training to construct the matching accelerate launch ... --dataset_config dataset_config.toml command.references/data-formats.md: TOML structure, metadata formats, caption/tag rules, and validation split precedence.references/workflows.md: Practical data prep flows for DreamBooth, fine-tuning metadata, ControlNet/masked loss, resize/bucketing, and cache helpers.references/troubleshooting.md: Common errors and corrective actions.scripts/validate_dataset_inputs.py: Read-only local preflight for TOML, JSON/JSONL, directories, metadata paths, image presence, mixed subset modes, and likely cache-only entries.[[datasets]]. Split them into separate [[datasets]] blocks if a training script supports both.--train_inpainting needs source images at training time and is incompatible with latent caching flags.