Writing Skills
writing-skills
效率与协作技能,来自 obra/superpowers,查看原文获取完整用途和操作说明。
kornia【部署与运维】Use Kornia for differentiable computer vision, image processing, augmentation, geometry, features, models, losses, metrics, and deployment workflows.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Kornia is a PyTorch-based differentiable computer vision library. Use this root router when a task names Kornia or asks for differentiable image operators, tensor-native augmentation, geometric vision, local features, model/application builders, or vision deployment utilities.
pip install kornia.pip install -e . after choosing the correct Python environment.kornia-rs.python -c "import kornia, torch; print(kornia.__version__, torch.__version__)"
scripts/kornia_environment_probe.py.scripts/kornia_api_smoke.py --device auto.| Task signal | Read |
|---|---|
| Image I/O, CHW/BCHW layout, RGB/BGR/HSV/Lab/YUV, filters, Canny/Sobel, enhancement, morphology, drawing | sub-skills/image-processing/SKILL.md |
| Random or deterministic augmentation pipelines, masks/boxes/keypoints/classes, transform matrices, inverse, video/patch augmentation | sub-skills/augmentation-pipelines/SKILL.md |
| Warps, resize, affine/perspective transforms, homography, camera projection, calibration, epipolar/pose, depth, point clouds, tracking | sub-skills/geometry-vision/SKILL.md |
| SSIM/PSNR, Dice/Focal/Tversky/Lovasz, Hausdorff, IoU, disparity, pose, target encoding, reductions, gradient checks | sub-skills/losses-and-metrics/SKILL.md |
| SIFT/HardNet/DISK/DeDoDe/ALIKED/XFeat, LAFs, descriptor matching, LoFTR, LightGlue, correspondence outputs | sub-skills/features-and-matching/SKILL.md |
| SAM, RT-DETR, YuNet, DexiNed, ViT/MobileViT/TinyViT/EfficientViT, model configs, output saving, ONNX, Ivy transpilation | sub-skills/models-and-deployment/SKILL.md |
references/module-map.md maps package modules to task families and sibling sub-skills.references/environment-and-installation.md covers install modes, optional dependency groups, backend probes, and native test commands.references/troubleshooting.md covers cross-cutting import, backend, dtype/range, optional dependency, and source-checkout failures.references/compile-and-performance.md covers Kornia's torch.compile/performance workflow and benchmark interpretation.references/repo-provenance.md records the source snapshot used to generate this skill.[0, 1] unless an API explicitly documents another range.kornia.* APIs over private helpers. If a task modifies Kornia source, preserve public API stability and docs/test obligations.references/troubleshooting.md before guessing at the fix.Representative native verification targets include import-warning tests, public API surface tests, focused image/augmentation/geometry/feature/loss/model-base tests, and no-download smoke scripts. Slow, network, pretrained-weight, full benchmark, ONNX-runtime, and optional backend cases should remain explicitly optional unless the user's task requires them.