All models

HyperTransformer-Pan

Transformer that sharpens a low-resolution hyperspectral image with texture from a panchromatic image.

432 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 (388 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
56.5M
Operations
432
Framework
PyTorch
Recurrent
Yes
Published
CVPR 2022
Cited by
205 (as of 27 October 2026)
Authors
Wele Gedara Chaminda Bandara, Vishal M. Patel
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
m17436
Graph hash
50ca4a7fd2ffb6a3d7ce8acd98ca938558ae378aaa43e9bbd9d45c59d4cb2f55
Skeleton hash
b711c305cef7a1615f4b7d73c5121bcaafbff617250e2377731dd063662bd6da
Architecture hash
0e87c26262f88f74b7ebb4317dd88886c5fc1b33cd796e5bad52bb83d9fa3a3f
Diagram SHA-256
9a9ed7ebb2c165817c263e66423adf79cd44573258d927396dd7dfc793358317
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

HyperTransformer is a network for pansharpening: it fuses a high-resolution panchromatic image (PAN) with a low-resolution hyperspectral image (LR-HSI) to produce a hyperspectral image with high spectral and spatial resolution. The authors start from the observation that earlier pansharpening approaches did not use an attention mechanism to transfer high-resolution texture features from PAN to the LR-HSI features, which caused spatial and spectral distortions.

In HyperTransformer, the features of the LR-HSI act as the queries of a transformer and the features of the PAN image act as its keys. The network has three main modules: two separate feature extractors for PAN and HSI, a multi-head feature soft attention module, and a spatial-spectral feature fusion module. The attention can be used at multiple spatial scales of the backbone.

Training has two stages: the backbone is trained first, and the MHFA modules are fine-tuned afterwards. The experiments use three publicly available hyperspectral datasets: the Pavia Center scene, Botswana and Chikusei. The low-resolution hyperspectral and PAN inputs for these experiments are generated with Wald's protocol.

Key idea. HyperTransformer treats low-resolution hyperspectral features as queries and panchromatic features as keys in a transformer, transferring high-resolution texture into the hyperspectral image.

  • HyperTransformer
  • HyperTransformer-Pan
  • pansharpening
  • hyperspectral image
  • panchromatic image
  • HSI
  • PAN
  • feature fusion transformer

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

Cite the paper

@misc{bandara2022hypertransformertexturalspectralfeature,
      title={HyperTransformer: A Textural and Spectral Feature Fusion Transformer for Pansharpening}, 
      author={Wele Gedara Chaminda Bandara and Vishal M. Patel},
      year={2022},
      eprint={2203.02503},
      archivePrefix={arXiv},
      primaryClass={cs.CV},
      url={https://arxiv.org/abs/2203.02503}, 
}