技能创建器
skill-creator
创建、改进和评估自定义技能,把专业流程转化为可重复使用的 AI 能力。
control-net【数据与研究】Route ControlNet 1.0 source-checkout tasks for annotators, Gradio inference apps, training datasets, and model/weight utilities.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Use this skill for tasks involving the ControlNet 1.0 repository: preparing control maps, running or adapting Gradio demos, validating Fill50K-style training data, creating ControlNet initialization checkpoints, inspecting configs, or debugging source-checkout setup.
This repo is a source checkout, not an installable Python distribution. Do not assume pip install control-net exists. A working runtime usually needs the documented environment dependencies, external Stable Diffusion/ControlNet checkpoints, detector weights, and compatible GPU/Torch setup.
| User task | Read |
|---|---|
| Prepare or debug Canny, HED, MLSD, MiDaS depth/normal, OpenPose, or Uniformer conditioning maps | sub-skills/annotators-and-preprocessing/SKILL.md |
| Choose, inspect, run, or adapt a ControlNet Gradio image-generation app | sub-skills/gradio-inference-apps/SKILL.md |
| Validate Fill50K-style data, write a custom dataset, or adapt tutorial training | sub-skills/training-and-datasets/SKILL.md |
| Inspect configs/APIs, create init checkpoints, dry-run key mappings, or transfer ControlNet weights | sub-skills/model-and-weight-utilities/SKILL.md |
environment.yaml family: Python 3.8-era ML stack, PyTorch/TorchVision, OpenCV, Gradio, PyTorch Lightning, OmegaConf, Transformers, OpenCLIP, and optional detector dependencies.python path/to/control-net/scripts/check_controlnet_checkout.py --repo-root path/to/ControlNet --json
Then route to the nearest sub-skill for workflow-specific checks:
annotators-and-preprocessing/scripts/inspect_annotator_inputs.py --self-checkgradio-inference-apps/scripts/extract_gradio_signatures.py --repo-root path/to/ControlNet --jsontraining-and-datasets/scripts/validate_fill50k_dataset.py --write-example-fixture path/to/tmp-fill50k --validate-written-fixturemodel-and-weight-utilities/scripts/inspect_weight_mapping.py --self-testgradio_*2image.py merely to inspect it; the source scripts build models, load checkpoints, move models to CUDA, and launch Gradio at top level.Run refresh-repo-skill if the current checkout changes public Gradio scripts, cldm/, ldm/, annotator/, models/*.yaml, tutorial scripts, docs, environment dependencies, or source script behavior relative to references/repo-provenance.md.