- Article title: AMMUNet: Multi-Scale Attention Map Merging for Remote Sensing Image Segmentation
- Journal acronym: LGRS
- Article DOI: 10.1109/LGRS.2024.3506718
- Paper link: IEEE Xplore
- arXiv link: arXiv:2404.13408
This project is based on MMSegmentation.
The full implementation of AMMUNet and the improved version based on UNetFormer have been uploaded.
-
Please follow the installation instructions in MMSegmentation and configure the relevant virtual environment.
-
Copy the 'AMMUNet/mmsegmentation' folder from this project to 'local-path/mmsegmentation'.
-
For the file 'mmsegmentation/mmseg/models/decode_heads/init.py', manually modify it by adding the following code snippet at the end of the file 'local-path/mmsegmentation/mmseg/models/decode_heads/init.py':
from .ammunet_head import AMMUNetHead
from .ammunetformer_head import AMMUNetFormerHead
from .msaunet_head import MSAUNetHead
from .pfmsaunet_head import PfMSAUNetHead
from .pfmsaunetformer_head import PfMSAUNetFormerHead
from .unet_head import UNetHead
from .unetformer_head import UNetFormerHead
__all__ = __all__ + ['AMMUNetHead', 'AMMUNetFormerHead', 'MSAUNetHead', 'PfMSAUNetHead', 'PfMSAUNetFormerHead',
'UNetHead', 'UNetFormerHead']To train the model, use the following command:(Taking ammunetformer as an example)
python ./mmsegmentation/tools/train.py ./mmsegmentation/configs/ammunetformer/ammunetformer_r50-d8-200e-vaihingen-512×512.py --work-dir ./mmsegmentation/checkpoints/vaihingen/ammunetformerTo perform inference, use the following command:(Taking ammunetformer as an example)
python ./tools/test.py ./mmsegmentation/configs/ammunetformer/ammunetformer_r50-d8-200e-vaihingen-512×512.py ./mmsegmentation/checkpoints/vaihingen/ammunetformer/epoch_200.pthIf you encounter any issues, please raise them in the Issues section.