Upload README.md
Browse files
README.md
CHANGED
|
@@ -1,207 +1,205 @@
|
|
| 1 |
-
---
|
| 2 |
-
license: apache-2.0
|
| 3 |
-
pipeline_tag: image-segmentation
|
| 4 |
-
tags:
|
| 5 |
-
- infrared-small-target-detection
|
| 6 |
-
- multimodal
|
| 7 |
-
- vision-language
|
| 8 |
-
- pytorch
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
<b>
|
| 16 |
-
<b>
|
| 17 |
-
<b>
|
| 18 |
-
<b>
|
| 19 |
-
<b>
|
| 20 |
-
</
|
| 21 |
-
|
| 22 |
-
|
| 23 |
-
<p>
|
| 24 |
-
<sup>1</sup>School of Software, Shandong University<br>
|
| 25 |
-
<sup>2</sup>Harbin Institute of Technology, Shenzhen<br>
|
| 26 |
-
<sup>β</sup>Corresponding author
|
| 27 |
-
</p>
|
| 28 |
-
|
| 29 |
-
|
| 30 |
-
<
|
| 31 |
-
|
| 32 |
-
|
| 33 |
-
<
|
| 34 |
-
|
| 35 |
-
|
| 36 |
-
|
| 37 |
-
|
| 38 |
-
|
| 39 |
-
|
| 40 |
-
|
| 41 |
-
|
| 42 |
-
|
| 43 |
-
|
| 44 |
-
|
| 45 |
-
|
| 46 |
-
|
| 47 |
-
|
| 48 |
-
|
| 49 |
-
- **
|
| 50 |
-
|
| 51 |
-
|
| 52 |
-
|
| 53 |
-
|
| 54 |
-
|
| 55 |
-
|
| 56 |
-
|
| 57 |
-
|
| 58 |
-
|
| 59 |
-
|
| 60 |
-
|
| 61 |
-
|
| 62 |
-
|
| 63 |
-
|
|
| 64 |
-
|
|
| 65 |
-
|
|
| 66 |
-
|
| 67 |
-
|
| 68 |
-
|
| 69 |
-
|
| 70 |
-
|
| 71 |
-
|
| 72 |
-
|
| 73 |
-
|
| 74 |
-
|
| 75 |
-
```
|
| 76 |
-
|
| 77 |
-
|
| 78 |
-
|
| 79 |
-
|
| 80 |
-
|
| 81 |
-
|
| 82 |
-
|
| 83 |
-
|
| 84 |
-
|
| 85 |
-
|
| 86 |
-
|
| 87 |
-
|
| 88 |
-
|
| 89 |
-
|
| 90 |
-
|
| 91 |
-
|
| 92 |
-
|
| 93 |
-
|
| 94 |
-
|
| 95 |
-
|
| 96 |
-
|
| 97 |
-
|
| 98 |
-
|
| 99 |
-
|
| 100 |
-
|
| 101 |
-
|
| 102 |
-
```
|
| 103 |
-
|
| 104 |
-
|
| 105 |
-
|
| 106 |
-
|
| 107 |
-
|
| 108 |
-
|
| 109 |
-
|
| 110 |
-
|
| 111 |
-
|
| 112 |
-
|
| 113 |
-
|
| 114 |
-
--
|
| 115 |
-
--
|
| 116 |
-
--
|
| 117 |
-
|
| 118 |
-
|
| 119 |
-
|
| 120 |
-
|
| 121 |
-
|
| 122 |
-
|
| 123 |
-
|
| 124 |
-
|
| 125 |
-
|
| 126 |
-
|
| 127 |
-
The
|
| 128 |
-
|
| 129 |
-
|
| 130 |
-
|
| 131 |
-
|
| 132 |
-
|
| 133 |
-
|
| 134 |
-
|
| 135 |
-
|
| 136 |
-
|
| 137 |
-
βββ
|
| 138 |
-
β βββ
|
| 139 |
-
β
|
| 140 |
-
|
| 141 |
-
β
|
| 142 |
-
βββ
|
| 143 |
-
β βββ
|
| 144 |
-
β
|
| 145 |
-
|
| 146 |
-
|
| 147 |
-
|
| 148 |
-
βββ
|
| 149 |
-
|
| 150 |
-
|
| 151 |
-
|
| 152 |
-
|
| 153 |
-
|
| 154 |
-
|
| 155 |
-
|
| 156 |
-
|
| 157 |
-
|
| 158 |
-
|
| 159 |
-
|
| 160 |
-
-
|
| 161 |
-
-
|
| 162 |
-
-
|
| 163 |
-
|
| 164 |
-
-
|
| 165 |
-
|
| 166 |
-
|
| 167 |
-
|
| 168 |
-
|
| 169 |
-
|
| 170 |
-
- The
|
| 171 |
-
-
|
| 172 |
-
- The
|
| 173 |
-
|
| 174 |
-
-
|
| 175 |
-
|
| 176 |
-
|
| 177 |
-
|
| 178 |
-
|
| 179 |
-
|
| 180 |
-
- **
|
| 181 |
-
|
| 182 |
-
-
|
| 183 |
-
|
| 184 |
-
|
| 185 |
-
|
| 186 |
-
|
| 187 |
-
|
| 188 |
-
|
| 189 |
-
|
| 190 |
-
```
|
| 191 |
-
|
| 192 |
-
|
| 193 |
-
|
| 194 |
-
|
| 195 |
-
|
| 196 |
-
```
|
| 197 |
-
|
| 198 |
-
|
| 199 |
-
|
| 200 |
-
|
| 201 |
-
|
| 202 |
-
|
| 203 |
-
|
| 204 |
-
|
| 205 |
-
|
| 206 |
-
The original datasets and the pretrained CLIP model remain subject to their respective licenses and terms of use.
|
| 207 |
-
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: apache-2.0
|
| 3 |
+
pipeline_tag: image-segmentation
|
| 4 |
+
tags:
|
| 5 |
+
- infrared-small-target-detection
|
| 6 |
+
- multimodal
|
| 7 |
+
- vision-language
|
| 8 |
+
- pytorch
|
| 9 |
+
---
|
| 10 |
+
|
| 11 |
+
|
| 12 |
+
<h1>ADGNet: Asymmetric Dual-text Guided Network for Infrared Small Target Detection</h1>
|
| 13 |
+
|
| 14 |
+
<p>
|
| 15 |
+
<b>Tongtong Wang</b><sup>1</sup>
|
| 16 |
+
<b>Mingzhu Xu</b><sup>1β</sup>
|
| 17 |
+
<b>Chenglong Yu</b><sup>1</sup>
|
| 18 |
+
<b>Jing Wang</b><sup>1</sup>
|
| 19 |
+
<b>Xiaohui Lin</b><sup>1</sup>
|
| 20 |
+
<b>Weili Guan</b><sup>2</sup>
|
| 21 |
+
</p>
|
| 22 |
+
|
| 23 |
+
<p>
|
| 24 |
+
<sup>1</sup>School of Software, Shandong University<br>
|
| 25 |
+
<sup>2</sup>Harbin Institute of Technology, Shenzhen<br>
|
| 26 |
+
<sup>β</sup>Corresponding author
|
| 27 |
+
</p>
|
| 28 |
+
|
| 29 |
+
<p>
|
| 30 |
+
<a href="<paper-link>">
|
| 31 |
+
<img src="https://img.shields.io/badge/ACM%20MM-2026-blue" alt="ACM MM 2026">
|
| 32 |
+
</a>
|
| 33 |
+
<a href="https://github.com/iLearn-Lab/MM26-ADGNet">
|
| 34 |
+
<img src="https://img.shields.io/badge/GitHub-MM26--ADGNet-black?logo=github" alt="GitHub">
|
| 35 |
+
</a>
|
| 36 |
+
</p>
|
| 37 |
+
---
|
| 38 |
+
|
| 39 |
+
## π Model Description
|
| 40 |
+
|
| 41 |
+
This repository provides the official model checkpoints for **ADGNet: Asymmetric Dual-text Guided Network for Infrared Small Target Detection**, accepted by **ACM Multimedia 2026**.
|
| 42 |
+
|
| 43 |
+
Infrared Small Target Detection aims to accurately segment weak and tiny targets from complex infrared backgrounds. Existing pure-vision methods rely mainly on pixel-level information, while existing vision-language methods commonly describe targets and backgrounds using a single textual prompt. Such a symmetric design overlooks the inherent semantic differences between sparse infrared targets and structurally complex backgrounds.
|
| 44 |
+
|
| 45 |
+
ADGNet addresses this problem through three main components:
|
| 46 |
+
|
| 47 |
+
- **Asymmetric Dual-text Prompt (ADP):** uses an abstract, image-independent target prompt and a detailed, image-dependent background prompt.
|
| 48 |
+
- **Asymmetric Dual-Branch Interaction (ADBI):** independently performs target localization and background suppression using their corresponding textual priors.
|
| 49 |
+
- **Adaptive Feature Aggregation (AFA):** dynamically fuses target-enhanced and background-suppressed features for accurate segmentation.
|
| 50 |
+
|
| 51 |
+
The model uses the pretrained **CLIP ViT-B/16** text encoder to extract semantic representations from the target and background prompts.
|
| 52 |
+
|
| 53 |
+
---
|
| 54 |
+
|
| 55 |
+
## π Available Checkpoints
|
| 56 |
+
|
| 57 |
+
All ADGNet checkpoints are hosted in this Hugging Face model repository.
|
| 58 |
+
|
| 59 |
+
Download the required checkpoint directly from the **Files and versions** section of this repository.
|
| 60 |
+
|
| 61 |
+
| Dataset | Checkpoint |
|
| 62 |
+
| :--------: | :----------------------------------------------------------: |
|
| 63 |
+
| IRSTD-1K | [`ADGNet_mIoU_72.38_IRSTD-1K.pth.tar`](<irstd-1k-checkpoint-link>) |
|
| 64 |
+
| NUDT-SIRST | [`ADGNet_mIoU_95.53_NUDT-SIRST.pth.tar`](<nudt-sirst-checkpoint-link>) |
|
| 65 |
+
| SIRST | [`ADGNet_mIoU_83.08_SIRST.pth.tar`](<sirst-checkpoint-link>) |
|
| 66 |
+
|
| 67 |
+
---
|
| 68 |
+
|
| 69 |
+
## π Usage
|
| 70 |
+
|
| 71 |
+
These checkpoints are designed to be used with the official ADGNet implementation:
|
| 72 |
+
|
| 73 |
+
```text
|
| 74 |
+
https://github.com/iLearn-Lab/MM26-ADGNet
|
| 75 |
+
```
|
| 76 |
+
|
| 77 |
+
### 1. Clone the Official Repository
|
| 78 |
+
|
| 79 |
+
```bash
|
| 80 |
+
git clone https://github.com/iLearn-Lab/MM26-ADGNet.git
|
| 81 |
+
cd MM26-ADGNet
|
| 82 |
+
```
|
| 83 |
+
|
| 84 |
+
### 2. Prepare the Checkpoints
|
| 85 |
+
|
| 86 |
+
Place the downloaded checkpoints in:
|
| 87 |
+
|
| 88 |
+
```text
|
| 89 |
+
MM26-ADGNet/
|
| 90 |
+
βββ SOTA_pth/
|
| 91 |
+
βββ ADGNet_mIoU_72.38_IRSTD-1K.pth.tar
|
| 92 |
+
βββ ADGNet_mIoU_95.53_NUDT-SIRST.pth.tar
|
| 93 |
+
βββ ADGNet_mIoU_83.08_SIRST.pth.tar
|
| 94 |
+
```
|
| 95 |
+
|
| 96 |
+
### 3. Prepare the CLIP Text Encoder
|
| 97 |
+
|
| 98 |
+
ADGNet uses the pretrained **CLIP ViT-B/16** model:
|
| 99 |
+
|
| 100 |
+
```bash
|
| 101 |
+
git clone https://huggingface.co/openai/clip-vit-base-patch16
|
| 102 |
+
```
|
| 103 |
+
|
| 104 |
+
Update the local CLIP model path in the corresponding project configuration or source file before inference.
|
| 105 |
+
|
| 106 |
+
### 4. Run Evaluation
|
| 107 |
+
|
| 108 |
+
Example evaluation on IRSTD-1K:
|
| 109 |
+
|
| 110 |
+
```bash
|
| 111 |
+
python train.py \
|
| 112 |
+
--trainset "IRSTD-1K" \
|
| 113 |
+
--testset "IRSTD-1K" \
|
| 114 |
+
--dataset_dir "./datasets" \
|
| 115 |
+
--mode test \
|
| 116 |
+
--ckpt "./SOTA_pth/ADGNet_mIoU_72.38_IRSTD-1K.pth.tar"
|
| 117 |
+
```
|
| 118 |
+
|
| 119 |
+
Replace the dataset name and checkpoint path when evaluating on NUDT-SIRST or SIRST.
|
| 120 |
+
|
| 121 |
+
---
|
| 122 |
+
|
| 123 |
+
## π Dataset and Text Annotation Preparation
|
| 124 |
+
|
| 125 |
+
The original infrared images and ground-truth masks are not included in this model repository. Please obtain **IRSTD-1K**, **NUDT-SIRST**, and **SIRST** from their respective official sources.
|
| 126 |
+
|
| 127 |
+
The asymmetric text annotations used by ADGNet are released separately in our Hugging Face dataset repository:
|
| 128 |
+
|
| 129 |
+
- **AITIR Text Annotations:** [`Download`](<huggingface-text-dataset-link>)
|
| 130 |
+
|
| 131 |
+
After downloading the original datasets and text annotations, organize them according to the official ADGNet repository:
|
| 132 |
+
|
| 133 |
+
```text
|
| 134 |
+
datasets/
|
| 135 |
+
βββ IRSTD-1K/
|
| 136 |
+
β βββ images/
|
| 137 |
+
β βββ masks/
|
| 138 |
+
β βββ img_idx/
|
| 139 |
+
β βββ text/
|
| 140 |
+
βββ NUDT-SIRST/
|
| 141 |
+
β βββ images/
|
| 142 |
+
β βββ masks/
|
| 143 |
+
β βββ img_idx/
|
| 144 |
+
β βββ text/
|
| 145 |
+
βββ SIRST/
|
| 146 |
+
βββ images/
|
| 147 |
+
βββ masks/
|
| 148 |
+
βββ img_idx/
|
| 149 |
+
βββ text/
|
| 150 |
+
```
|
| 151 |
+
|
| 152 |
+
---
|
| 153 |
+
|
| 154 |
+
## π― Intended Use
|
| 155 |
+
|
| 156 |
+
The released checkpoints are intended for:
|
| 157 |
+
|
| 158 |
+
- Academic research on infrared small target detection
|
| 159 |
+
- Reproduction of the results reported in the ADGNet paper
|
| 160 |
+
- Evaluation on IRSTD-1K, NUDT-SIRST, and SIRST
|
| 161 |
+
- Research on multimodal and text-guided infrared image segmentation
|
| 162 |
+
- Comparison with other infrared small target detection methods
|
| 163 |
+
|
| 164 |
+
---
|
| 165 |
+
|
| 166 |
+
## β οΈ Limitations
|
| 167 |
+
|
| 168 |
+
- The model requires both infrared images and corresponding textual prompts.
|
| 169 |
+
- Detection performance may vary when applied to datasets or scenes that differ substantially from the training distribution.
|
| 170 |
+
- The released checkpoints are designed for the dataset splits and evaluation settings used in the paper.
|
| 171 |
+
- The model depends on the pretrained CLIP ViT-B/16 text encoder.
|
| 172 |
+
- The original infrared datasets are subject to their respective licenses and terms of use.
|
| 173 |
+
|
| 174 |
+
---
|
| 175 |
+
|
| 176 |
+
## π Related Resources
|
| 177 |
+
|
| 178 |
+
- **GitHub Repository:** [iLearn-Lab/MM26-ADGNet](https://github.com/iLearn-Lab/MM26-ADGNet)
|
| 179 |
+
- **Paper:** [`ADGNet: Asymmetric Dual-text Guided Network for Infrared Small Target Detection`](<paper-link>)
|
| 180 |
+
- **Text Annotations:** [`AITIR Text Annotations`](<huggingface-text-dataset-link>)
|
| 181 |
+
|
| 182 |
+
---
|
| 183 |
+
|
| 184 |
+
## π Citation
|
| 185 |
+
|
| 186 |
+
If you find ADGNet or the released checkpoints useful in your research, please consider citing our paper:
|
| 187 |
+
|
| 188 |
+
```bibtex
|
| 189 |
+
|
| 190 |
+
```
|
| 191 |
+
|
| 192 |
+
Please also consider checking out and citing our other related work:
|
| 193 |
+
|
| 194 |
+
```bibtex
|
| 195 |
+
|
| 196 |
+
```
|
| 197 |
+
|
| 198 |
+
---
|
| 199 |
+
|
| 200 |
+
## π License
|
| 201 |
+
|
| 202 |
+
This model repository is released under the [Apache License 2.0](./LICENSE).
|
| 203 |
+
|
| 204 |
+
The original datasets and the pretrained CLIP model remain subject to their respective licenses and terms of use.
|
| 205 |
+
|
|
|
|
|
|