Skip to content
KitploitKITPLOIT
ToolsBlog
Submit
ToolsBlog
Submit

Hacking, PenTest, and Cybersecurity Tools for Your Security Arsenal!

Kitploit is a directory of hacking, cybersecurity, and pentesting tools. Discover the latest project updates to find vulnerabilities, analyze systems, automate testing, and strengthen your security.

··Feeds·Contact·Privacy·© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
Unlearnable-Clusters — CVPR2023: Unlearnable Clusters: Towards Label-agnostic Unlearnable Examples | Kitploit
Tools/GitHubGitHub/jiamingzhang94/unlearnable-clusters
Machine LearningPapers & ResearchAI SecurityAdversarial Attack
GitHubjiamingzhang94/unlearnable-clusters

Unlearnable-Clusters

CVPR2023: Unlearnable Clusters: Towards Label-agnostic Unlearnable Examples

View Repository
2223 years agoReviewed by Kitploit

Most Popular

View all →

Discover the most used tools by our community.

Explore all tools

Browse our collection of tools

View all tools →
Share

Unlearnable Clusters: Towards Label-agnostic Unlearnable Examples

Code relative to "Unlearnable Clusters: Towards Label-agnostic Unlearnable Examples", CVPR2023.

Preprocess

First, run preprocess.py to rename the dataset directory

root@kitploit:~
python preprocess.py --config config/preprocess.yaml -f rename

K-means initial

Second, run preprocess.py to conduct K-means initial.

root@kitploit:~
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

Genearte the cluster-wise perturbations and the corresponding UEs

Third, run main.py --stage 1 to generate cluster-wise perturbations.

root@kitploit:~
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

Train target model

Finally, run main.py --stage 2 to train target models.

root@kitploit:~
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

Citation

If you find this code to be useful for your research, please consider citing.

root@kitploit:~
@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}
}
Download Tool