
CVPR2023: Clusters Inaprendíveis: Rumo a Exemplos Inaprendíveis Agnósticos de Rótulo
Código relativo a "Clusters Não-Aprendíveis: Rumo a Exemplos Não-Aprendíveis Independentes de Rótulo", CVPR2023.
Primeiro, execute preprocess.py para renomear o diretório do conjunto de dados.
python preprocess.py --config config/preprocess.yaml -f rename
Em segundo lugar, execute preprocess.py para realizar a inicialização K-means.
python preprocess.py --config config/preprocess.yaml -f cluster_pets_rn50_cluster10
# the cluster file will be stored in {output_dir}/{dataset}_{surrogate_model}_cluster{num_clusters}.pth
# e.g., output/cluster/pets_rn50_cluster10.pth
Terceiro, execute main.py --stage 1 para gerar as perturbações por cluster.
python main.py --config config/stage_1.yaml -e {experiment} --stage 1
# {experiment} is uc_{dataset}_{surrogate_model}
# e.g., python main.py --config config/stage_1.yaml -e uc_pets_cliprn50 --stage 1
Por fim, execute main.py --stage 2 para treinar os modelos-alvo.
python main.py --config config/stage_2.yaml -e {experiment} --stage 2
# {experiment} is uc_{dataset}_{surrogate_model}_{target_model}
# e.g., python main.py --config config/stage_2.yaml -e uc_pets_rn50_rn18 --stage 2
Se este código for útil para sua pesquisa, considere citá-lo.
@inproceedings{zhang2023unlearnable,
title={Unlearnable Clusters: Towards Label-agnostic Unlearnable Examples},
author={Jiaming Zhang, Xingjun Ma, Qi Yi, Jitao Sang, Yu-Gang Jiang, Yaowei Wang, Changsheng Xu},
booktitle="Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition",
year={2023}
}