Home

Awesome

DR-Tune

https://arxiv.org/abs/2308.12058

This repository is an official PyTorch implementation of DR-Tune: Improving Fine-tuning of Pretrained Visual Models by Distribution Regularization with Semantic Calibration (ICCV2023).

<img src="./pipeline.png" alt="DR-Tune" style="zoom: 40%;" />

Usage

Environments

Dataset preparation

The datasets used in Table 1 can be downloaded via their official link.

The datasets used in Table 2 can be downloaded from here and see "vtab-1k".

Pretrained model preparation

The pretrained model checkpoints used in the paper can be found in the table below.

Please put the checkpoint in ./pretrained_models.

Backbone architecturePretraining strategyUrl
ViT-BClassificationCheckpoint
ViT-BMAECheckpoint
ViT-LMAECheckpoint
ResNet-50MoCo-v1Checkpoint
ResNet-50MoCo-v2Checkpoint
ResNet-50PCLCheckpoint
ResNet-50HCSCCheckpoint
ResNet-50SwAVCheckpoint
ResNet-50/101/152InfoMinCheckpoint
ResNeXt-101/152InfoMinCheckpoint

Training

Fine-tuning a ResNet-50 pretrained by MoCo-v2 on CIFAR10.

CIFAR10 will be automatically downloaded to ./data.

bash train.sh 1 --cfg ./configs/cifar10_k2048_lr001.yaml

Citation

If you find our work helpful in your research, please cite it as:

@inproceedings{zhou2023dr,
  title={DR-Tune: Improving Fine-tuning of Pretrained Visual Models by Distribution Regularization with Semantic Calibration},
  author={Zhou, Nan and Chen, Jiaxin and Huang, Di},
  booktitle={Proceedings of the IEEE/CVF International Conference on Computer Vision},
  pages={1547--1556},
  year={2023}
}