All models

AETNet

Swin UNet between two convolution layers that reconstructs hyperspectral images to make anomalies easier to detect.

528 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

Loading diagram (26 KB)

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
1.7M
Operations
528
Framework
PyTorch
Recurrent
No
Published
IEEE Transactions on Geoscience and Remote Sensing (arXiv 2023)
Cited by
66 (as of 29 October 2026)
Authors
Zhaoxu Li, Yingqian Wang, Chao Xiao and others
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
m14512
Graph hash
3d4589addbc33ba3f979e2550f022028a4e06db070aafb68991966de5841b688
Skeleton hash
be96de89837d159d809c1c2cee3ba669b2a7999ffcad500d848ecae25a2d9709
Architecture hash
5b9bc2987e14c6d79565ed4ac3c6934ba74f2af4a25a78f8021cdac69a6dcbeb
Diagram SHA-256
dca4b04cdf810d002bbc172c2aa5f16c854f1237d5742d0af6ce58d69eba2e9a
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

AETNet is a network for hyperspectral anomaly detection that is trained once and then applied to new scenes. The network does not score anomalies itself: it reconstructs the test image, and a detector such as GRX then turns the reconstruction into an anomaly score map.

The network consists of a convolutional encoder, a Swin UNet module and a convolutional decoder. The convolutional encoder is a single 3 × 3 layer that changes the number of spectral channels from B to C, and the decoder is a 3 × 3 layer that restores it. Inside the Swin UNet module, the encoder has two stages, each a Swin Transformer block followed by a down-sample layer. The bottleneck is one Swin Transformer block, and the decoder mirrors the encoder with two stages. Unlike the classical Swin Transformer block, these blocks omit the LayerNorm layers in front of the two attention modules. A residual connection joins the input of the network to its output.

Training uses anomaly-free hyperspectral images covered with random masks, so the network learns in an unsupervised way how anomalies relate to their spatial context. The loss is a multi-scale gradient magnitude similarity (MSGMS) loss, chosen because spectrum-wise losses ignore the spatial dependence of neighboring pixels. The paper also introduces HAD100, a hyperspectral anomaly detection dataset with 100 real test scenes.

Key idea. The paper trains one anomaly enhancement network on anomaly-free hyperspectral images with random masks, so it can be applied to new test scenes without retraining.

  • AETNet
  • anomaly enhancement network
  • You Only Train Once
  • hyperspectral anomaly detection
  • hyperspectral image
  • random mask
  • HAD100
  • Swin UNet
  • remote sensing anomaly detection

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

Cite the paper

@misc{li2023trainoncelearninggeneral,
      title={You Only Train Once: Learning a General Anomaly Enhancement Network with Random Masks for Hyperspectral Anomaly Detection}, 
      author={Zhaoxu Li and Yingqian Wang and Chao Xiao and Qiang Ling and Zaiping Lin and Wei An},
      year={2023},
      eprint={2303.18001},
      archivePrefix={arXiv},
      primaryClass={eess.IV},
      doi={https://doi.org/10.1109/TGRS.2023.3258067},
      url={https://arxiv.org/abs/2303.18001}, 
}