executing-plans
executing-plans
Use when executing an implementation plan in the current session as the implementer yourself — your human partner chose inline execution, or no subagent tool is available
model-task-adaptationRoutes pytorch-grad-cam adaptation for ViT, Swin, CLIP, object detection, semantic segmentation, embeddings, custom targets, and reshape transforms.
Independent GitHub snapshot · Automated classification · Original documentation governs
Use this sub-skill when the model output or intermediate activation is not an ordinary CNN feature map plus classification logits. It covers transformer token reshaping, CLIP prompt scoring, HuggingFace/timm optional dependencies, object detection and segmentation targets, embeddings/similarity outputs, and custom callables.
references/target-and-reshape-reference.md
for target callable and reshape contracts.references/transformer-and-clip-workflows.md
for ViT, SwinT, CLIP, and optional dependency patterns.references/detection-segmentation-embeddings.md
for Faster R-CNN, semantic segmentation, embedding outputs, and DFF routing.references/troubleshooting.md for shape,
dtype, device, and missing optional dependency failures.scripts/validate_reshape_transform.py
before integrating a new token-to-spatial transform.B x C x H x W, pass a reshape_transform
that removes non-spatial tokens and transposes to channel-first layout.Do not select a final transformer block blindly: if the classifier reads only a class token, patch gradients at the final block can be zero. Use the nearest pre-head spatially meaningful layer and validate it.