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
torchmetricsUse TorchMetrics to choose, inspect, and combine metric families for PyTorch evaluation, including core API, domain metrics, model-based metrics, and wrappers.
Independent GitHub snapshot · Automated classification · Original documentation governs
TorchMetrics is a metric library for PyTorch evaluation. Use this skill when the request is about choosing, calling, combining, or debugging TorchMetrics APIs rather than about training a model itself.
--device auto to confirm the install and core imports.core-api — Metric, functional versus module metrics, update / compute / forward / reset, custom metric state, Lightning logging, DDP behavior, persistence.basic-metric-domains — classification, regression, retrieval, clustering, nominal, and other tensor-only metric families.vision-detection-metrics — image quality, segmentation, detection, and panoptic metrics.audio-text-metrics — audio and speech quality metrics plus no-download text metrics such as ROUGE, WER, CER, BLEU, SacreBLEU, and Perplexity.model-based-metrics — BERTScore, InfoLM, CLIPScore, CLIP-IQA, FID/KID/LPIPS/DISTS/ARNIQA/PPL, DNSMOS, NISQA, VMAF, and similar metrics that need pretrained assets or external model planning.collections-wrappers-plotting — MetricCollection, wrappers, trackers, and plotting.Metric, start with core-api.collections-wrappers-plotting.model-based-metrics.core-api or collections-wrappers-plotting as needed.TorchMetrics has no verified console CLI. Install it from Python:
pip install torchmetrics
Then add only the extra that matches the route you chose when needed, for example torchmetrics[audio], torchmetrics[image], torchmetrics[text], torchmetrics[detection], torchmetrics[multimodal], torchmetrics[video], torchmetrics[visual], or torchmetrics[clustering].
Avoid torchmetrics[all] unless you truly need a very broad evaluation environment.
python -c "import torchmetrics; print(torchmetrics.__version__)"python scripts/check_torchmetrics_environment.py --device autoMetric, add_state, compute_with_cache, LightningModule, or DDP -> core-apiAccuracy, F1, MSE, nDCG, ClusterAccuracy, or CramersV -> basic-metric-domainsPSNR, DiceScore, MeanAveragePrecision, or PanopticQuality -> vision-detection-metricsSNR, PESQ, WER, ROUGE, or Perplexity -> audio-text-metricsBERTScore, CLIPScore, FID, LPIPS, DNSMOS, or VMAF -> model-based-metricsMetricCollection, ClasswiseWrapper, MetricTracker, or .plot() -> collections-wrappers-plotting