用于分布式、可扩展 PyTorch 应用程序的 机器学习 指标。
conda install -c conda-forge torchmetrics
``` 使用 uv 安装 ```bash
uv add torchmetrics
``` 从源码安装 ```bash
# with git
pip install git+https://github.com/Lightning-AI/torchmetrics.git@release/stable
``` 从存档安装 ```bash
pip install https://github.com/Lightning-AI/torchmetrics/archive/refs/heads/release/stable.zip
``` 针对专用指标的额外依赖项: ```bash
pip install torchmetrics[audio]
pip install torchmetrics[image]
pip install torchmetrics[text]
pip install torchmetrics[all] # install all of the above
``` 安装最新的开发者版本 ```bash
pip install https://github.com/Lightning-AI/torchmetrics/archive/master.zip
``` </details> _______________________________________________________________________ # TorchMetrics 是什么暂无开放 Issues,或尚未同步最近议题。