035-dcn-t-dual-context-network-with-transformer-for-hyperspectral-image-classification.

https://github.com/szu-advtech-2024/035-dcn-t-dual-context-network-with-transformer-for-hyperspectral-image-classification.

Science Score: 36.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
  • DOI references
    Found 1 DOI reference(s) in README
  • Academic publication links
    Links to: arxiv.org, ieee.org
  • Academic email domains
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (9.5%) to scientific vocabulary
Last synced: 10 months ago · JSON representation

Repository

Basic Info
  • Host: GitHub
  • Owner: SZU-AdvTech-2024
  • Default Branch: main
  • Size: 0 Bytes
Statistics
  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • Open Issues: 0
  • Releases: 0
Created over 1 year ago · Last pushed over 1 year ago
Metadata Files
Citation

https://github.com/SZU-AdvTech-2024/035-DCN-T-Dual-Context-Network-With-Transformer-for-Hyperspectral-Image-Classification./blob/main/

# DCN-T: Dual Context Network with Transformer for Hyperspectral Image Classification (TIP 2023)

## Di Wang, Jing Zhang, Bo Du, Liangpei Zhang and Dacheng Tao

### Pytorch implementation of our [paper](https://arxiv.org/abs/2304.09915) for ImageNet Pretraining and Transformer-based image-level hyperspectral image classification.



Fig.1 - The proposed DCN-T.

Fig.2 - The DCM.
## Usage 1. Install Pytorch 1.9 with Python 3.8. 2. Clone this repo. ``` git clone https://github.com/DotWang/DCN-T.git ``` 3. Prepare the tri-spectral dataset with the notebook 4. Download [ImageNet pretrained model](https://pytorch.org/vision/stable/models/vgg.html?highlight=models) 5. For implementing the clusttering, install the SSN ``` cd utils/gensp/src python setup.py install ``` Or you can taste the pytorch version realized in the ***network_local_global.py*** 6. Training and Testing For example, training on the [WHU-Hi-LongKou](http://rsidea.whu.edu.cn/resource_WHUHi_sharing.htm) scene with soft voting ``` CUDA_VISIBLE_DEVICES=0 python -m torch.distributed.launch --nproc_per_node=1 --nnodes 1 \ --node_rank=0 --master_port=1901 --use_env train_memory.py \ --dataset 'WHUHi_LongKou_15_100' \ --backbone 'vgg16' \ --epochs 30 --lr 1e-3 --groups 128 --eval_interval 1 \ --batch_size 4 --test_batch_size 1 --workers 2 \ --ra_head_num 4 --ga_head_num 4 --mode 'soft' ``` ``` CUDA_VISIBLE_DEVICES=0 python test_gpu.py \ --dataset 'WHUHi_LongKou_15_100' \ --backbone 'vgg16' --ra_head_num 4 --ga_head_num 4 \ --scales 1 --groups 128 \ --model_path './run/WHUHi_LongKou_15_100/vgg16_128/experiment_0/model_last.pth.tar' \ --save_folder './run/WHUHi_LongKou_15_100/vgg16_128/experiment_0/' ``` ## Citation ``` @ARTICLE{wang_2023_dcnt, author={Wang, Di and Zhang, Jing and Du, Bo and Zhang, Liangpei and Tao, Dacheng}, journal={IEEE Transactions on Image Processing}, title={DCN-T: Dual Context Network With Transformer for Hyperspectral Image Classification}, year={2023}, volume={32}, number={}, pages={2536-2551}, doi={10.1109/TIP.2023.3270104}} ``` ## Thanks [SSN-Pytorch](https://github.com/perrying/ssn-pytorch)   [SpixelFCN](https://github.com/fuy34/superpixel_fcn)   [BIT](https://github.com/justchenhao/BIT_CD) ## Relevant Projects [1] Pixel and Patch-level Hyperspectral Image Classification
    Adaptive SpectralSpatial Multiscale Contextual Feature Extraction for Hyperspectral Image Classification, IEEE TGRS, 2020 | [Paper](https://ieeexplore.ieee.org/document/9121743/) | [Github](https://github.com/DotWang/ASSMN)
    Di Wang, Bo Du, Liangpei Zhang and Yonghao Xu [2] Image-level/Patch-free Hyperspectral Image Classification
    Fully Contextual Network for Hyperspectral Scene Parsing, IEEE TGRS, 2021 | [Paper](https://ieeexplore.ieee.org/document/9347487) | [Github](https://github.com/DotWang/FullyContNet)
    Di Wang, Bo Du, and Liangpei Zhang [3] Graph Convolution based Hyperspectral Image Classification
    Spectral-Spatial Global Graph Reasoning for Hyperspectral Image Classification, IEEE TNNLS, 2023 | [Paper](https://ieeexplore.ieee.org/document/10114988) | [Github](https://github.com/DotWang/SSGRN)
    Di Wang, Bo Du, and Liangpei Zhang [4] Neural Architecture Search for Hyperspectral Image Classification
    HKNAS: Classification of Hyperspectral Imagery Based on Hyper Kernel Neural Architecture Search, IEEE TNNLS, 2023 | [Paper](https://ieeexplore.ieee.org/document/10159237) | [Github](https://github.com/DotWang/HKNAS)
    Di Wang, Bo Du, Liangpei Zhang, and Dacheng Tao

Owner

  • Name: SZU-AdvTech-2024
  • Login: SZU-AdvTech-2024
  • Kind: organization

GitHub Events

Total
  • Watch event: 1
  • Push event: 2
  • Create event: 3
Last Year
  • Watch event: 1
  • Push event: 2
  • Create event: 3