README.md
March 10, 2026 ยท View on GitHub
TAR
Official implementation of our CVPR 2026 paper "TAR: Token-Aware Refinement for Fine-grained Generalized Category Discovery"
๐ Introduction
This repository contains the official PyTorch implementation of TAR: Token-Aware Refinement for Fine-grained Generalized Category Discovery.
Our work focuses on fine-grained generalized category discovery and addresses attention artifacts that hinder models from capturing discriminative fine-grained information.
Key Contributions:
-
๐ We reveal a previously overlooked challenge in Fine-grained Generalized Category Discovery, namely the attention artifact problem that hinders models from capturing discriminative fine-grained information.
-
๐ง We propose a plug-and-play method that can be easily integrated into existing models without modifying their architectures.
-
๐ Extensive experiments on multiple fine-grained benchmarks (e.g., CUB, FGVC-Aircraft, and Stanford Cars) demonstrate consistent and significant performance improvements.
๐ Project Structure
TAR/
โ
โโโ clip/ # CLIP Model
โโโ scripts/ # training scripts
โโโ data/ # datasets
โโโ dataset_class_name/ # Generated data
โโโ util/ # functions
โ
โโโ model.py # Implementation of TAR
โโโ config.py # Configuration file
โโโ requirements.txt
โโโ README.md
โโโ LICENSE
๐ Installation
git clone https://github.com/VectorYangYiStar/TAR.git
cd TAR
#remember to use Anaconda to create your virtual environment
pip install -r requirements.txt
๐ Training
./scripts/run_aircraft.sh
./scripts/run_cifar10.sh
./scripts/run_cifar100.sh
./scripts/run_cub.sh
./scripts/run_herb.sh
./scripts/run_imagenet100.sh
./scripts/run_scars.sh
๐ Citation
If you find this project useful, please consider citing:
๐ค Acknowledgements
This project builds upon the following excellent works:
๐ License
This project is released under the MIT License. See the LICENSE file for details.