Writing Skills
writing-skills
效率与协作技能,来自 obra/superpowers,查看原文获取完整用途和操作说明。
models-and-deployment【部署与运维】Use Kornia models, application builders, ONNX deployment, output conversion, and multi-framework transpilation safely.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Use this sub-skill when a task mentions Kornia model builders, pretrained model
configuration, high-level application wrappers, model output conversion, ONNX
export/runtime composition, torch.compile deployment, or Ivy-backed
multi-framework conversion.
to_onnx, ONNX Runtime providers, and
to_numpy/to_jax/to_tensorflow, read
references/onnx-and-transpiler.md.Choose this sub-skill for:
kornia.models.* model classes, configs, builders, and model-specific
from_config, from_name, from_pretrained, load_checkpoint, or
to_onnx questions.Sam, SamConfig, VisualPrompter, promptable segmentation outputs,
SegmentationResults, and MobileSAM setup.RTDETR, RTDETRConfig, RTDETRDetectorBuilder, ObjectDetector,
detection output conversion, drawing, saving, and ONNX export.YuNet, FaceDetector, FaceDetectorResult, DexiNed, EdgeDetector,
and EdgeDetectorBuilder application-model usage.VisionTransformer, MobileViT, TinyViT, EfficientViT, backbone feature
outputs, classification-head attachment, and no-download model smokes.ModelBaseMixin.save, visualize(..., output_type=...), output_type="pil",
output_type="torch", and application wrapper save() behavior.kornia.onnx.ONNXModule, kornia.onnx.ONNXSequential, ONNX loader/cache
behavior, providers, io_maps, IR/opset conversion, and export metadata.kornia.to_numpy(), kornia.to_jax(), kornia.to_tensorflow(), and optional
dependency errors involving onnx, onnxruntime, onnxscript, ivy,
transformers, diffusers, huggingface_hub, safetensors, or model
backend packages.Route away when the main problem is not model/deployment orchestration:
pretrained=False, config
objects, or randomly initialized models for probes unless the user explicitly
approves weights, network/cache access, and model size.SamConfig from
kornia.models.sam and RTDETRConfig from kornia.models.rt_detr; do not
assume every config is re-exported from top-level kornia.models.B,C,H,W or C,H,W; use
floating RGB data in [0,1] for application wrappers that normalize, draw,
prompt, or save visualizations.float32 first for
model/debug work; treat CUDA, MPS, float16, and bfloat16 as optional backend
paths that need explicit verification.output_type as a visualization conversion choice, not a model-output
datatype contract. Kornia model mixins support "torch" and "pil"; they do
not convert outputs to NumPy.ONNXSequential requires ONNX/ONNX Runtime at construction time and
remote hf:// inputs can download unless already cached.