This is the implementation of paper: SwinFG: A fine-grained recognition scheme based on swin transformer
- Python 3.8.12
- PyTorch 1.5.1
- torchvision 0.6.1
You can download the official pre-trained model file of the swin Transformer from here.
The dataset we used can be downloaded here:
pip3 install -r requirements.txt
CUDA_VISIBLE_DEVICES=0 python3 -m torch.distributed.launch --nproc_per_node 1 train.py --dataset CUB --name myTrain
@article{MA2024123021,
title = {SwinFG: A fine-grained recognition scheme based on swin transformer},
journal = {Expert Systems with Applications},
volume = {244},
pages = {123021},
year = {2024},
issn = {0957-4174},
doi = {https://doi.org/10.1016/j.eswa.2023.123021},
author = {Zhipeng Ma and Xiaoyu Wu and Anzhuo Chu and Lei Huang and Zhiqiang Wei}
}