All models

CTMixer

A two-branch convolution and transformer classifier for small hyperspectral image patches.

Image classification · 96 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 (23 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
625.7K
Operations
96
Framework
PyTorch
Recurrent
No
Published
2022, IEEE Geoscience and Remote Sensing Letters, vol. 19
Cited by
157 (as of 28 October 2026)
Authors
Junjie Zhang, Zhe Meng, Feng Zhao and others
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
m15200
Graph hash
2c34fed056397815a37bf4118d73a6f21a9807d87de423e4a50bd9ee90d6af6f
Skeleton hash
dd2d41b2f5aef89ea84f720dc4db13d6494abc13f11dff06877c919a684dff1d
Architecture hash
5cd37e7fe770ec7198916a9544327a750a5bb06aa12faf35d2c699fae843c641
Diagram SHA-256
f275740321c6076f5b19b28d387e52084dcac97817f95b3411b328916dedd2d4
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

CTMixer, the convolution transformer mixer, classifies small patches cut from a hyperspectral image, where each pixel carries many spectral bands rather than three color channels. It is built to combine two paradigms that read an image differently: a convolutional neural network attends to local features in the hyperspectral cube, while a vision transformer is interested in global features.

A group parallel residual block first captures local spectral-spatial features in the patch. A double-branch structure made of a CNN branch and a transformer branch then captures local and global features together, and convolution operations are introduced inside the multi-head self-attention mechanism itself. The repository's settings for this model are 11 by 11 patches, one encoder layer and four attention heads.

Key idea. CTMixer combines a convolutional branch and a transformer branch for hyperspectral image classification, and adds convolution operations inside multi-head self-attention.

  • CTMixer
  • Convolution Transformer Mixer
  • hyperspectral image classification
  • HSI classification
  • hyperspectral
  • vision transformer
  • remote sensing
  • spectral-spatial classification

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

Cite the paper

@article{Zhang_2022, title={Convolution Transformer Mixer for Hyperspectral Image Classification}, volume={19}, ISSN={1558-0571}, url={http://dx.doi.org/10.1109/LGRS.2022.3208935}, DOI={10.1109/lgrs.2022.3208935}, journal={IEEE Geoscience and Remote Sensing Letters}, publisher={Institute of Electrical and Electronics Engineers (IEEE)}, author={Zhang, Junjie and Meng, Zhe and Zhao, Feng and Liu, Hanqiang and Chang, Zhenhui}, year={2022}, pages={1–5} }