All models

AGPCNet (Attention-Guided Pyramid Context)

A ResNet-18 segmentation network that finds small targets in infrared images using patch-wise context attention.

Segmentation · 3,843 operations Checked

100%

Showing the top corner; full diagram not loaded yetShowing a small copy; full diagram not loaded yetLarge diagram, not loaded yet

Open SVG

This diagram has 3,843 operations (75 KB) and is drawn when you ask.

Open in a new tab

Click or tap a spot to read it up close. Scroll or drag inside the diagram to move through it. Zoom with + and − or Ctrl and scroll. Press 0 for the whole graph. Swipe inside the diagram to move through it. Use + and − to zoom.

At a glance

Parameters
12.4M
Operations
3,843
Framework
PyTorch
Recurrent
No
Published
IEEE TAES 2023 (as Attention-guided pyramid context networks for detecting infrared small target under complex background)
Cited by
47 (as of 28 October 2026)
Authors
Tianfang Zhang, Siying Cao, Tian Pu, Zhenming Peng
License
MIT
Checked
Passed: the trace was replayed operation by operation and matched the model's own output for this input.

Files

The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.

Details
Stable ID
m14523
Graph hash
d3dc1d9a854fa09aaff4533039734e917e579a6e0f7300abb356688b9c2a7c04
Skeleton hash
7cafa20c8a40d0bfc76760f01e61e590fb9b8c5b26e10b0e5410e15528dca2d0
Architecture hash
5ee68d72c28045f5ee9dd117a409cfa9564d9ba13c1d04120f2bc7192385e594
Diagram SHA-256
1a726a1659285254535ab099cd58cf920e93046e8d2fd1fa721320281777296c
TorchLens version
2.36.0
Renderer
graphviz 2.43.0+pyvips 3.2.0+libvips 8.18.7+render-opts@06c1f0d3
Check
Forward pass replayed in PyTorch

What it is

AGPCNet (Attention-Guided Pyramid Context Network) detects small targets in infrared images by classifying every pixel as target or not and returning a map the same size as the input. The paper explains why this is hard: the targets are very small and lack shape, color and texture information, and the background carries clutter and random noise.

Its three main components are an Attention-Guided Context Block (AGCB), a Context Pyramid Module (CPM) and an Asymmetric Fusion Module (AFM). The AGCB divides the feature map into patches to compute local associations, then relates the patches to one another with Global Context Attention (GCA). The CPM fuses AGCBs at several scales with the original feature map. The AFM merges low-level and deep-level features, and the authors say it was inspired by CBAM and ACM.

To prevent overfitting, the authors used ResNet-18 and ResNet-34 backbones with pretrained weights. The repository lists AGPCNet+ResNet18 checkpoints for the MDFA, SIRST Aug and merged datasets. Input size is fixed at 256×256, which the paper describes as closer to the size of actual infrared data. Because SIRST has only 427 images, the authors augmented it into SIRST Aug, with a training set of 8525 images and a test set of 545.

Key idea. AGPCNet combines patch-wise local attention guided by global context attention, a multi-scale context pyramid and asymmetric feature fusion to segment small infrared targets.

  • AGPCNet
  • Attention-Guided Pyramid Context Network
  • infrared small target detection
  • infrared image segmentation
  • context pyramid module
  • asymmetric fusion module
  • global context attention
  • SIRST Aug
  • MDFA

AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.

Cite the paper

@misc{zhang2021agpcnetattentionguidedpyramidcontext,
      title={AGPCNet: Attention-Guided Pyramid Context Networks for Infrared Small Target Detection}, 
      author={Tianfang Zhang and Siying Cao and Tian Pu and Zhenming Peng},
      year={2021},
      eprint={2111.03580},
      archivePrefix={arXiv},
      primaryClass={cs.CV},
      url={https://arxiv.org/abs/2111.03580}, 
}