any-door
Routes AnyDoor zero-shot object-level image customization workflows.
- License 许可
- MIT
- 最近更新
- 2026-09-03
- Stars
- ★ 351
- Forks
- 27
01 前言 Front Matter
- name
- any-door
- license
- MIT
- metadata
- { "disco-role": "operating" }
- description
- Routes AnyDoor zero-shot object-level image customization workflows.
- disable-model-invocation
- true
02 资源文件 8
- 参考文档references/checkpoints-and-configs.md2.7 KB
- 参考文档references/environment-and-installation.md2.9 KB
- 参考文档references/overview.md3.2 KB
- 参考文档references/repo-provenance.md1.1 KB
- 参考文档references/repo-routing-metadata.json489 B
- 参考文档references/troubleshooting.md4.3 KB
- 脚本scripts/check_anydoor_environment.py6.0 KB
- 脚本scripts/patch_anydoor_configs.py2.9 KB
03 SKILL.md 正文
AnyDoor
AnyDoor is a zero-shot object-level image customization repo built around a control-diffusion pipeline, DINOv2 conditioning, mask-aware preprocessing, local Gradio demo support, and mixed-dataset training utilities.
Use this root skill as a router, not as a full manual. It points future agents to the smallest workflow-specific sub-skill that owns the task.
Start here
Read the root references first when you need the whole repo shape:
references/overview.mdfor the top-level repository map and workflow split.references/environment-and-installation.mdfor supported install paths, Python/CUDA expectations, and the safest preflight order.references/checkpoints-and-configs.mdfor config placeholders, checkpoint files, and the paths that must be patched before generation.references/troubleshooting.mdfor cross-cutting import, checkpoint, and path failures.references/repo-provenance.mdandreferences/repo-routing-metadata.jsonwhen you need staleness or router-placement metadata.
Run scripts/check_anydoor_environment.py before any generation or training
workflow. It checks the repo layout, CUDA readiness, optional xformers, and
placeholder config paths without running a full model.
If placeholder config values are still present, use
scripts/patch_anydoor_configs.py to replace them before routing into an
inference or training branch.
Routing map
| User intent | Route to | Read next |
|---|---|---|
| Fresh clone, install, import, checkpoint, or CUDA questions | sub-skills/setup-and-checkpoints/ |
references/environment-and-installation.md and references/checkpoints-and-configs.md |
| Single-image customization, VITON-HD inference, Gradio demo, or Cog prediction | sub-skills/inference-and-demo/ |
sub-skills/inference-and-demo/references/inference-workflows.md, sub-skills/inference-and-demo/references/mask-and-image-formats.md, sub-skills/inference-and-demo/references/demo-and-cog-deployment.md |
| Dataset layout, preprocessing, training, debug sampling, or checkpoint conversion | sub-skills/data-and-training/ |
sub-skills/data-and-training/references/dataset-formats.md, sub-skills/data-and-training/references/training-workflows.md, sub-skills/data-and-training/references/model-architecture.md |
What this root skill owns
- Project-wide repo orientation and workflow routing.
- Shared preflight checks for imports, CUDA, placeholder configs, and checkpoint presence.
- Cross-cutting troubleshooting for install, import, backend, and path issues.
- A consistent entry point for future agents so they do not have to rediscover the repo layout.
What this root skill does not own
- Detailed inference preprocessing and output composition.
- Dataset family-specific path rules and training recipes.
- Model architecture internals beyond what is needed to explain AnyDoor configuration and path requirements.
Common signals and destinations
- "I cannot import the repo" or "xformers is missing" → read setup first.
- "Generate from a reference image and mask" → go to inference and demo.
- "How do I prepare UVO / VITON-HD / SAM / MVImageNet data?" → go to data and training.
- "How do I patch checkpoint placeholders?" → go to setup and checkpoints.
- "How do I launch the demo or Cog predictor?" → go to inference and demo.
- "How do I start training or convert weights?" → go to data and training.
Short policy reminders
- Any actual generation in this repo is CUDA-backed; CPU checks are useful for support workflows only.
- Do not assume the placeholder checkpoint values in the configs are usable.
- Do not assume bundled examples or datasets are present on the target machine.
- Keep runtime links inside this skill tree only.
If you need deeper detail
Each sub-skill has its own focused references and scripts. Read the nearest one instead of turning this router into a manual.
04 同仓库更多 Skills
passnet-triton-opt
Make a single PassNet Triton kernel fast AND numerically faithful: performance model (when a replacement can win at all), block/grid/warp tuning, autotune policy, launch overhead, and per-op numeric recipes to pass the dtype baseline tolerances. Use when a pass matches and is correct but speedup below expected, or when correctness fails by small numeric margins.
passnet-solve
END-TO-END playbook for solving one PassNet sample: analyze the computation graphs, decide the optimization strategy (what to fuse, what to replace, what to leave alone), drive the iteration loop, and maximize the sample score. This is the ENTRY skill — invoke it first for any PassNet optimization task; it tells you when to use passnet-pattern-fusion, passnet-triton-opt and passnet-feedback.
passnet-skill
PassNet GPU kernel optimization via compiler passes. Design and implement Triton-based optimization passes, create pass files under ./pass_dir/, self-evaluate with pass_evaluator, and iterate to maximize GPU speedup.
passnet-pattern-fusion
Author PassNet pass files: write patterns that actually MATCH the FX graph, pick fusion regions (which ops to absorb into one Triton kernel), and structure multi-pass submissions with the mandatory shared-dispatch architecture. Use when creating or fixing pattern()/replacement_args()/replacement_func() files, when a pass "failed to match", or when deciding how to fuse multiple kernels/ops.
passnet-orchestrate
Round/batch planning and decision support for PassNet graph optimization. Use for multi-sample triage, worker allocation, eval-budget policy, and post-eval keep/revert decisions. For solving one concrete sample end to end, use passnet-solve as the entry skill; consult this skill only when you need broader planning or a specific decision gate.
passnet-feedback
Fast, deterministic feedback for PassNet work: pre-flight pattern/match verification WITHOUT burning a GPU evaluation, per-node bottleneck analysis of a sample's graphs, and eval-log parsing into per-variant status + estimated score + failure classification. Use BEFORE every GPU evaluation (check_pattern), at the START of a sample (analyze_graph), and AFTER every evaluation (parse_eval_log).