- Install
PyTorch==2.1.0andtorchvision==0.16.0withCUDA==12.1:
conda install pytorch==2.1.0 torchvision==0.16.0 cudatoolkit=12.1 -c pytorch- Download the downstream datasets to ./data/*.
- Fine-tune pretrained models with hyper-paramters sweep to obtain ground-truth fine-tuning results
bash finetune.sh
- Extract features of target data using pretrained models
python forward_feature.py --dataset cifar10
- Compute DISCO
python disco_metric.py --dataset cifar10
- Assess the effectiveness of DISCO
python tw.py --dataset cifar10