S3ANet
[IEEE TGRS 2024] S3ANet: Spatial-Spectral Self-Attention Learning Network for Defending Against Adversarial Attacks in Hyperspectral Image Classification
Install / Use
/learn @YichuXu/S3ANetREADME
Spatial–Spectral Self-Attention Learning Network for Defending Against Adversarial Attacks in Hyperspectral Image Classification
<!-- PROJECT SHIELDS -->Requirements
- Python 3.7.13
- Pytorch 1.12
Dataset
- Download the Pavia University image and the corresponding annotations. Put these files into the
Datafolder.
Usage
-
Data Preparation:
-
python GenSample.py --train_samples 300Prepare the training and testing set. The training samples is generated by randomly selecting
300samples from each category.
-
-
Adversarial Attack with the FGSM:
CUDA_VISIBLE_DEVICES=0 python Attack_FGSM_S3ANet.py --dataID 1 --bins 1 2 3 6 --epoch 1000 --iter 10
-
Adversarial Examples Visualization:
CUDA_VISIBLE_DEVICES=0 python GenAdvExample.py --model S3ANet --bins 1 2 3 6
Paper
if you find it useful for your research, please consider giving this repo a ⭐ and citing our paper! We appreciate your support!😊
@article{S³ANet,
title={S³ANet: Spatial–Spectral Self-Attention Learning Network for Defending Against Adversarial Attacks in Hyperspectral Image Classification},
author={Xu, Yichu and Xu, Yonghao and Jiao, Hongzan and Gao, Zhi and Zhang, Lefei},
journal={IEEE Trans. Geos. Remote Sens.},
volume={62},
pages={1--13},
year={2024},
}
Acknowledgments
<!-- links -->Related Skills
next
A beautifully designed, floating Pomodoro timer that respects your workspace.
product-manager-skills
45PM skill for Claude Code, Codex, Cursor, and Windsurf: diagnose SaaS metrics, critique PRDs, plan roadmaps, run discovery, and coach PM career transitions.
devplan-mcp-server
3MCP server for generating development plans, project roadmaps, and task breakdowns for Claude Code. Turn project ideas into paint-by-numbers implementation plans.
