AGENT SKILL

setup-and-checkpoints

Prepares AnyDoor environments, checkpoints, and config paths.

License 许可
MIT
最近更新
2026-09-03
Stars
★ 351
Forks
27

01 前言 Front Matter

name
setup-and-checkpoints
license
MIT
metadata
{ "disco-role": "operating" }
description
Prepares AnyDoor environments, checkpoints, and config paths.
disable-model-invocation
true

02 资源文件 2

03 SKILL.md 正文

Setup and Checkpoints

Use this sub-skill when the task is about installing AnyDoor, verifying the runtime environment, locating or patching checkpoint paths, or explaining why a fresh clone still cannot generate images.

What this sub-skill owns

  • Environment setup for AnyDoor’s torch/CUDA stack.
  • Repo layout checks and import readiness.
  • Placeholder checkpoint and DINOv2 path patching.
  • Optional dependency awareness for xformers and demo mask refinement.
  • The preflight stage before any inference, demo, or training route.

What this sub-skill does not own

  • Mask preprocessing for inference inputs.
  • Gradio, Cog, or prediction input/output handling.
  • Dataset-specific path formats or training recipes.

Route those topics to the sibling sub-skills.

Read first

  • ../../references/environment-and-installation.md
  • ../../references/checkpoints-and-configs.md
  • ../../references/troubleshooting.md
  • references/checkpoint-checklist.md
  • references/troubleshooting.md

Use these scripts

  • ../../scripts/check_anydoor_environment.py for a safe repo-root preflight.
  • ../../scripts/patch_anydoor_configs.py to replace checkpoint placeholders.

Trigger phrases

This is usually the right branch when the user says things like:

  • “I just cloned the repo.”
  • “Why does import or CUDA fail?”
  • “Where do I put the AnyDoor checkpoint?”
  • “What should I do about the DINOv2 weight?”
  • “Can I skip xformers?”
  • “The demo says it needs a model but I only see placeholders.”

Minimum operational checklist

  1. Confirm the repo root contains cldm/, ldm/, datasets/, configs/, and dinov2/.
  2. Confirm the Python environment imports torch and sees CUDA when generation is expected.
  3. Check that the placeholder values in configs/inference.yaml, configs/demo.yaml, and configs/anydoor.yaml have been replaced.
  4. Verify the DINOv2 checkpoint exists at the configured path.
  5. If the demo refinement toggle is enabled, verify the optional iseg weight.

Common decisions

  • xformers missing: usually record and continue. The attention code has a fallback path.
  • share package unavailable: only the source weight-conversion helper is affected; the rest of the repo can still be documented and checked.
  • CPU import only: useful for support checks, but not proof that AnyDoor can generate images.
  • Placeholder config values remain: stop and patch before routing to any generation workflow.

Troubleshooting focus

This branch owns installation and backend problems such as:

  • ModuleNotFoundError from running outside the repo root.
  • CUDA wheel or driver mismatches.
  • Optional dependency gaps like xformers.
  • Missing checkpoint or DINOv2 weights.
  • Demo refinement toggle failures due to a missing iseg weight.
  • The stale conversion-script config path issue.

Output expected from a future agent

A future agent should be able to say:

  • which paths are ready,
  • which placeholders are still unresolved,
  • whether CUDA is actually available,
  • which optional dependencies were skipped,
  • and what remains blocked before any generation route.

Cross-links

When this branch is complete, pass the task to:

  • inference-and-demo for mask/image generation tasks.
  • data-and-training for dataset and training tasks.

Quality bar

The branch is ready when the future agent can prepare a repo root, patch the configs, and explain any remaining backend or checkpoint limitations without reopening the source files.

04 同仓库更多 Skills

VectorSpaceLab
VectorSpaceLab/AREX-Skill

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.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

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.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

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.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

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.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

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.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

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).

★ 351