计划执行与检查节点
executing-plans
按既定实施计划完成工作,保持过程检查和反馈。
augmentation-pipelines【效率与协作】Use Kornia augmentation pipelines for random or deterministic image, mask, box, keypoint, class, patch, and video transforms.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Use this sub-skill when a task asks for Kornia kornia.augmentation random or
deterministic transforms, synchronized image/mask/box/keypoint/class
augmentation, deterministic replay of random parameters, augmentation transform
matrices, inverse augmentation, or augmentation containers such as
AugmentationSequential, ImageSequential, PatchSequential, and
VideoSequential.
This skill assumes Kornia 0.9.0rc1 with Python >=3.11, PyTorch >=2.0, numpy,
packaging, and kornia-rs available. Optional ONNX, transformers, diffusers,
and ivy integrations may be absent. Augmentation image tensors should be float
PyTorch tensors in [0, 1], usually C,H,W or B,C,H,W.
data_keys, input order, masks, boxes, keypoints, class labels,
transform matrices, and inverse behavior, read
references/data-keys-and-matrices.md.Choose this sub-skill for:
AugmentationSequential pipelines with data_keys such as "input",
"mask", "bbox", "bbox_xyxy", "bbox_xywh", "keypoints",
"class", or "label".RandomAffine,
RandomPerspective, RandomResizedCrop, RandomHorizontalFlip, and
RandomVerticalFlip.ColorJiggle and related image-only color/photometric perturbations.same_on_batch, keepdim, random_apply,
random_apply_weights, deterministic replay with cached or supplied params,
transform matrices, and inverse.PatchSequential and
VideoSequential.Route away when the main problem is not augmentation orchestration:
resize, affine/perspective warp construction,
homographies, camera geometry, or coordinate-system reasoning:
geometry-vision.[0, 1] before augmentation. Convert
uint8 images with division by 255.0; do not pass raw integer images to
random color or geometric augmentations.B,C,H,W for ordinary image batches. Single C,H,W images are accepted
by some modules, but B,C,H,W is safer for multi-target pipelines and matrix
checks.AugmentationSequential, make the number and order of positional inputs
exactly match data_keys; the first key must be image/input when random
parameters are generated from the image.data_keys=["input", "mask"].
"image" and "input" are aliases; "class" and "label" are aliases.p=1.0 for deterministic smokes and required transforms; set explicit
ranges such as degrees=0.0, scale=(1.0, 1.0), or fixed crop sizes when a
test must be reproducible.same_on_batch=True only when every batch item must receive the same
sampled parameters. Leave it False for independent per-item stochastic
augmentation.keepdim=True when downstream code expects the same rank/shape as the
input; leave defaults only when the target API accepts Kornia's batch-form
normalization.extra_args only for per-data-key overrides. Masks default to nearest
interpolation semantics in AugmentationSequential, which is usually what
segmentation masks need..transform_matrix and cached params as per-call eager state. They are
useful for diagnostics, replay, and inverse, but not a stable serialization
format for deployment.