The official PyTorch implementation of "LMA: lightweight mixed-domain attention for efficient network design".
Figure 1: An overview of the proposed LMA module.
LMA. Detail of implementations, including modules and the networks, can be found in Model in this repository.
- OS: Ubuntu 18.04.1
- CUDA: 11.6
- Python: 3.9.12
- Toolkit: PyTorch 1.10
- GPU: RTX A6000 (4x)
- ptflops
- For generating GradCAM++ results, please follow the code on this repository
Figure 2: The LMA-based inverted residual block.
Figure 3: The LMA-based residual block.
Table 1: Comparison of different attention methods on the ImageNet validation set in terms of network parameters (# Params.), FLOPs, inference speed (frame per second, FPS), and Top-1/Top-5 accuracy (%).
Figure 4: Training and validation curves of LMA-based attention module under ResNet architectures with different depths.
If you find LMA useful in your research, please consider citing:
@article{yu2023lma,
title={LMA: lightweight mixed-domain attention for efficient network design},
author={Yu, Yang and Zhang, Yi and Song, Zhe and Tang, Cheng-Kai},
journal={Applied Intelligence},
volume={53},
number={11},
pages={13432--13451},
year={2023},
publisher={Springer}
}
If you have any suggestion or question, you can leave a message here or contact us directly: yang_y9802@163.com. Thanks for your attention!





