Home

Awesome

Self-Attention-Based Deep Feature Fusion for Remote Sensing Scene Classification

Use vgg16 and SAFF for small sample classification from the paper.

Introduction

<p align="center"><img src="imgs/model.png" width=""500"/></p> <p align="center"><img src="imgs/saff.png" width=""500"/></p>

Environmental preparation

conda create -n zh python=3.9
conda activate zh
python3 -m pip install --upgrade pip
pip3 install -r requirements.txt

Run

If your dataset is at path /hy-tmp/data Suppose you want to train on the UC dataset.

python run.py 
--data_path /hy-tmp/data 
--extract
--dataset UC
python run.py 
--data_path /hy-tmp/data
--train
--dataset UC
--ratio 0.8

Experimental results

datasettrain_ratioacc
NWPU0.166.49
NWPU0.273.13
UC0.892.5
SAR0.889.8