PIM (Plug-in Module fine-grained)
A plug-in selector and combiner on a Swin-T backbone for fine-grained image classification.
Image classification · 1,368 operations Checked
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
- Task
- Image classification
- Parameters
- 256.9M
- Operations
- 1,368
- Framework
- PyTorch
- Recurrent
- No
- Published
- 2022
- Cited by
- 67 (as of 16 November 2026)
- Authors
- Po-Yung Chou, Cheng-Hung Lin, Wen-Chung Kao
- Source
- GitHub: chou141253/FGVC-PIM
- License
- MIT
- Checked
- Passed: the trace was replayed operation by operation and matched the model's own output for this input.
Files
The file opened in a new tab. Use your browser's Save command there to keep it.
The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.
Details
- Stable ID
- m19132
- Graph hash
- 6f88571f213d3eb7768965f4b717bc9f9427a122ab93cafee18e7e23975fa117
- Skeleton hash
- a02bac2aae36743fb7ccc6ec93583663fb051fdc87acba62244985b4a29df32e
- Architecture hash
- db3308b3afe3096532506e37ffea8635bf35a0186288e504cf3fb0bed490a76c
- Diagram SHA-256
- 4adb05309a1be88b8fe0c3f4ef17415d9791c516cd61aa7688c713f10ab19a3a
- 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
PIM is a plug-in module for fine-grained visual classification, where the categories are very similar to one another, such as bird species or the makes or models of vehicles. It can be integrated into common backbones, CNN-based or Transformer-based, and is trained with image-level annotations only. The paper's motivation is that most earlier methods for finding discriminative regions require two- or multi-stage architectures and cannot be trained end-to-end.
The feature map from each backbone block is fed into a Weakly Supervised Selector, where a linear classifier predicts a class for every feature point and the points with the highest confidence are selected. A Combiner then fuses the selected points from all scales; in its graph convolution form they are treated as the nodes of a graph, passed through a graph convolutional network, aggregated into several super nodes, averaged and classified by a linear classifier. A Feature Pyramid Network is added to the backbone to mix spatial features of different scales.
With Swin-T as the backbone the input is a 384×384 color image, and each of Swin-T's four blocks has its own number of selected regions. The paper reports 92.77% accuracy on CUB200-2011 and 92.83% on NABirds, using a Swin-T model pre-trained on ImageNet22K as the backbone. In its experiments the number of selected regions worked best at [2048, 512, 128, 32] or [256, 128, 64, 32].
Key idea. PIM is a plug-in module for common CNN or Transformer backbones that selects discriminative feature points and fuses them for fine-grained classification.
- PIM
- plug-in module
- FGVC-PIM
- fine-grained visual classification
- fine-grained image classification
- FGVC
- weakly supervised selector
- bird species classification
AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.
Cite the paper
@misc{chou2022novelpluginmodulefinegrained,
title={A Novel Plug-in Module for Fine-Grained Visual Classification},
author={Po-Yung Chou and Cheng-Hung Lin and Wen-Chung Kao},
year={2022},
eprint={2202.03822},
archivePrefix={arXiv},
primaryClass={cs.CV},
url={https://arxiv.org/abs/2202.03822},
}