# STD-EvalKit **Repository Path**: anshuai/STD-EvalKit ## Basic Information - **Project Name**: STD-EvalKit - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: main - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2025-11-01 - **Last Updated**: 2025-11-01 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README

Actions Status

[English](README.md) | 简体中文
![framework](./resources/framework.svg) ## 简介 STD EvalKit (Small Center Detection Evaluation Kit)是一个用于红外小目标分割任务的评价指标工具库。 我们统计了近年来红外小目标分割领域的评价指标([统计结果](https://github.com/IRSTD/StatOnEvalMetrics)),并实现了其中最常用的部分指标。
主要特性 - **速度快** 对于只能单张图像迭代计算的评价指标我们都实现了多线程版本。 - **设备友好** 所有的指标均支持批次的自动累积。 - **接口统一** 所有的指标提供相同的接口,`Metric.update(labels, preds)`完成批次的累积, `Metric.get()`操作完成指标的计算。 - **计算统一** 同一类型的指标,我们使用了相同的计算逻辑与算法,保证了结果间的一致性。 - **支持的数据类型丰富** 支持多种输入数据类型,hwc/chw/bchw/bhwc/image path 等, 具体的类型与使用方式见
./notebook/tutorial.ipynb
## 评价指标总览 根据评价指标计算时所需要的数据,我们将指标分为三个大类,像素级、 目标级、混合型。
Architectures
Pixel Level Target Level
Center-Level Box Level
## 安装 ```bash git clone git@github.com:IRSTD/STD-EvalKit.git ``` ```bash cd STD-EvalKit ``` 开发者模式安装(可以更方便的debug) ```bash pip install -e . ``` 或者只使用 ```bash pip install stdeval ``` ## 教程 ```python from stdeval.metrics import PixelPrecisionRecallF1IoU Metric = PixelPrecisionRecallF1IoU( conf_thr=0.5, ) Metric.update(labels=labels, preds=preds.sigmoid()) precision, recall, f1_score, iou = Metric.get() ``` 更多的使用细节:
./notebook/tutorial.ipynb
## Star History [![Star History Chart](https://api.star-history.com/svg?repos=IRSTD/STD-EvalKit&type=Date)](https://www.star-history.com/#IRSTD/STD-EvalKit&Date)