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
- Confirm the repo root contains
cldm/, ldm/, datasets/, configs/, and
dinov2/.
- Confirm the Python environment imports torch and sees CUDA when generation is
expected.
- Check that the placeholder values in
configs/inference.yaml,
configs/demo.yaml, and configs/anydoor.yaml have been replaced.
- Verify the DINOv2 checkpoint exists at the configured path.
- 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.
1---2name: setup-and-checkpoints3description: "Prepares AnyDoor environments, checkpoints, and config paths."4metadata:5 source: https://skillmd.com/skills/vectorspacelab/setup-and-checkpoints6 disco-role: operating7disable-model-invocation: true8license: MIT9---1011# Setup and Checkpoints1213Use this sub-skill when the task is about installing AnyDoor, verifying the14runtime environment, locating or patching checkpoint paths, or explaining why a15fresh clone still cannot generate images.1617## What this sub-skill owns1819- Environment setup for AnyDoor’s torch/CUDA stack.20- Repo layout checks and import readiness.21- Placeholder checkpoint and DINOv2 path patching.22- Optional dependency awareness for xformers and demo mask refinement.23- The preflight stage before any inference, demo, or training route.2425## What this sub-skill does not own2627- Mask preprocessing for inference inputs.28- Gradio, Cog, or prediction input/output handling.29- Dataset-specific path formats or training recipes.3031Route those topics to the sibling sub-skills.3233## Read first3435- `../../references/environment-and-installation.md`36- `../../references/checkpoints-and-configs.md`37- `../../references/troubleshooting.md`38- `references/checkpoint-checklist.md`39- `references/troubleshooting.md`4041## Use these scripts4243- `../../scripts/check_anydoor_environment.py` for a safe repo-root preflight.44- `../../scripts/patch_anydoor_configs.py` to replace checkpoint placeholders.4546## Trigger phrases4748This is usually the right branch when the user says things like:4950- “I just cloned the repo.”51- “Why does import or CUDA fail?”52- “Where do I put the AnyDoor checkpoint?”53- “What should I do about the DINOv2 weight?”54- “Can I skip xformers?”55- “The demo says it needs a model but I only see placeholders.”5657## Minimum operational checklist58591. Confirm the repo root contains `cldm/`, `ldm/`, `datasets/`, `configs/`, and60 `dinov2/`.612. Confirm the Python environment imports torch and sees CUDA when generation is62 expected.633. Check that the placeholder values in `configs/inference.yaml`,64 `configs/demo.yaml`, and `configs/anydoor.yaml` have been replaced.654. Verify the DINOv2 checkpoint exists at the configured path.665. If the demo refinement toggle is enabled, verify the optional `iseg` weight.6768## Common decisions6970- **xformers missing**: usually record and continue. The attention code has a71 fallback path.72- **share package unavailable**: only the source weight-conversion helper is73 affected; the rest of the repo can still be documented and checked.74- **CPU import only**: useful for support checks, but not proof that AnyDoor can75 generate images.76- **Placeholder config values remain**: stop and patch before routing to any77 generation workflow.7879## Troubleshooting focus8081This branch owns installation and backend problems such as:8283- `ModuleNotFoundError` from running outside the repo root.84- CUDA wheel or driver mismatches.85- Optional dependency gaps like `xformers`.86- Missing checkpoint or DINOv2 weights.87- Demo refinement toggle failures due to a missing `iseg` weight.88- The stale conversion-script config path issue.8990## Output expected from a future agent9192A future agent should be able to say:9394- which paths are ready,95- which placeholders are still unresolved,96- whether CUDA is actually available,97- which optional dependencies were skipped,98- and what remains blocked before any generation route.99100## Cross-links101102When this branch is complete, pass the task to:103104- `inference-and-demo` for mask/image generation tasks.105- `data-and-training` for dataset and training tasks.106107## Quality bar108109The branch is ready when the future agent can prepare a repo root, patch the110configs, and explain any remaining backend or checkpoint limitations without111reopening the source files.