Skip to main content

A simple and efficient implementation for the IRSTD performance analysis.

Project description

Logo

PyIRSTDMetrics: A simple and efficient implementation for the IRSTD performance analysis


Star History Chart

Introduction

A simple and efficient implementation for the IRSTD performance analysis.

Your improvements and suggestions are welcome.

Supported Metrics

Metric Sample-based Whole-based Related Class Level
IoU max,avg,adp,bin (nIoU) bin (IoU) CMMetrics+IOUHandler pixel
F1 max,avg,adp,bin bin CMMetrics+FmeasureHandler pixel
Precision max,avg,adp,bin bin CMMetrics+PrecisionHandler pixel
Recall max,avg,adp,bin bin CMMetrics+RecallHandler pixel
TPR max,avg,adp,bin bin CMMetrics+TPRHandler pixel
FPR max,avg,adp,bin bin CMMetrics+FPRHandler pixel
Pd/Fa MatchingBasedMetrics+DistanceOnlyMatching target
hIoU MatchingBasedMetrics+DistanceOnlyMatching hybrid
hIoU-based loc error analysis HierarchicalIoUBasedErrorAnalysis
hIoU-based seg error analysis HierarchicalIoUBasedErrorAnalysis

As shown in plot_average_metrics of examples/metric_recorder.py:

  • precision and recall sequences can be used to plot the PR curve.
  • TPR and FPR sequences can be used to plot the ROC curve.

Usage

The core files are in the folder py_irstd_metrics.

  • [Latest, but may be unstable] Install from the source code: pip install git+https://github.com/lartpang/PyIRSTDMetrics.git
  • [More stable] Install from PyPI: pip install pyirstdmetrics

Examples

@inproceedings{IRSTD-ACM-nIoU,
  title     = {Asymmetric Contextual Modulation for Infrared Small Target Detection},
  booktitle = WACV,
  author    = {Dai, Yimian and Wu, Yiquan and Zhou, Fei and Barnard, Kobus},
  year      = {2021},
  volume    = {},
  number    = {},
  pages     = {949-958},
  doi       = {10.1109/WACV48630.2021.00099},
  issn      = {2642-9381},
  month     = {Jan},
}
@article{IRSTD-DNANet-PdFa,
  title    = {Dense Nested Attention Network for Infrared Small Target Detection},
  author   = {Li, Boyang and Xiao, Chao and Wang, Longguang and Wang, Yingqian and Lin, Zaiping and Li, Miao and An, Wei and Guo, Yulan},
  journal  = IEEE_J_IP,
  year     = {2023},
  volume   = {32},
  number   = {},
  pages    = {1745-1758},
  doi      = {10.1109/TIP.2022.3199107},
  issn     = {1941-0042},
  month    = {},
}

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pyirstdmetrics-0.1.0.tar.gz (13.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pyirstdmetrics-0.1.0-py3-none-any.whl (11.9 kB view details)

Uploaded Python 3

File details

Details for the file pyirstdmetrics-0.1.0.tar.gz.

File metadata

  • Download URL: pyirstdmetrics-0.1.0.tar.gz
  • Upload date:
  • Size: 13.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for pyirstdmetrics-0.1.0.tar.gz
Algorithm Hash digest
SHA256 d6b517f6afbefd7f78f2604b456fb37111633256347b68987d35589fb69403df
MD5 094299391a53c87d21f3282a022e1bf4
BLAKE2b-256 d53a592c0a25d8e769a8ded099b8add497939b4a6ce90efc86f146dd16feec40

See more details on using hashes here.

Provenance

The following attestation bundles were made for pyirstdmetrics-0.1.0.tar.gz:

Publisher: python-publish.yml on lartpang/PyIRSTDMetrics

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pyirstdmetrics-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: pyirstdmetrics-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 11.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for pyirstdmetrics-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 37bd9f790315f2ba4b55f95fcd2446cb4b6db176ac36297380f216e526869f1c
MD5 bd50c4ddf14636405ea771f38d427734
BLAKE2b-256 5c8c275ec3aaa453541b1e8270a3d17afe8e185dd6eff501006978dfc20004c2

See more details on using hashes here.

Provenance

The following attestation bundles were made for pyirstdmetrics-0.1.0-py3-none-any.whl:

Publisher: python-publish.yml on lartpang/PyIRSTDMetrics

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page