Skip to content
KitploitKITPLOIT
工具博客
提交
工具博客
提交

黑客、渗透测试和网络安全工具,武装您的安全武器库!

Kitploit 是一个黑客、网络安全和渗透测试工具的目录。发现最新的项目更新,查找漏洞、分析系统、自动化测试并加强你的安全。

··订阅源·联系·隐私·© 2026 Kitploit

工具目录

分类

查看所有分类
Loading categories
Unlearnable-Clusters — CVPR2023:不可学习聚类——迈向标签无关的不可学习示例 | Kitploit
工具/GitHubGitHub/jiamingzhang94/unlearnable-clusters
机器学习论文与研究AI 安全对抗性攻击
GitHubjiamingzhang94/unlearnable-clusters

Unlearnable-Clusters

CVPR2023:不可学习聚类——迈向标签无关的不可学习示例

查看仓库
22233年前Kitploit 审核通过

最受欢迎

查看全部 →

发现我们社区最常用的工具。

探索所有工具

浏览我们的工具集合

查看所有工具 →
分享

不可学习聚类:迈向标签无关的不可学习示例

相关代码:"Unlearnable Clusters: Towards Label-agnostic Unlearnable Examples",CVPR2023。

预处理

首先,运行 preprocess.py 来重命名数据集目录

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

K-means 初始化

第二步,运行 preprocess.py 进行 K-means 初始化。

root@kitploit:~
python preprocess.py --config config/preprocess.yaml -f cluster_pets_rn50_cluster10
# 聚类文件将保存在 {output_dir}/{dataset}_{surrogate_model}_cluster{num_clusters}.pth
# 例如:output/cluster/pets_rn50_cluster10.pth

生成逐聚类扰动及相应的UE(不可学习示例)

第三步,运行 main.py --stage 1 生成逐聚类扰动。

root@kitploit:~
python main.py --config config/stage_1.yaml -e {experiment} --stage 1 
# {experiment} 是 uc_{dataset}_{surrogate_model}
# 例如:python main.py --config config/stage_1.yaml -e uc_pets_cliprn50 --stage 1

训练目标模型

最后,运行 main.py --stage 2 来训练目标模型。

root@kitploit:~
python main.py --config config/stage_2.yaml -e {experiment} --stage 2 
# {experiment} 是 uc_{dataset}_{surrogate_model}_{target_model}
# 例如:python main.py --config config/stage_2.yaml -e uc_pets_rn50_rn18 --stage 2

引用

如果您觉得本代码对您的研究有帮助,请考虑引用。

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}
}
下载工具