Official PyTorch implementation of CLE-ViT: Contrastive Learning Encoded Transformer for Ultra-Fine-Grained Visual Categorization (IJCAI 2023).
If you use the code in this repo for your work, please cite the following bib entries:
Please use the command below to create the environment for CLE-ViT.
$ conda env create -f env.yaml
- Get models in this link: Swin-B, Swin-S...
wget https://github.com/SwinTransformer/storage/releases/download/v1.0.0/swin_base_patch4_window7_224_22k.pth
You can download the datasets from the links below:
Using the scripts on scripts directory to train the model, e.g., train on SoybeanGene dataset.
$ sh scripts/run_gene.sh
Password: r5zr
Our project references the codes in the following repos. Thanks for thier works and sharing.