Downloads · 30 days
10
2% of all-time downloads
hanxunh/cpgc_clip_rn101_mscoco
cpgc_clip_rn101_mscoco is a image-to-image model from hanxunh. Use it when you need one image transformed into another. It is set up for XTransferBench. The card lists the license as mit.
<div align="center" <a href="https://arxiv.org/abs/2505.05528" target="blank"<img src="https://img.shields.io/badge/arXiv-b5212f.svg?logo=arxiv" alt="arXiv"</a </div
Downloads · 30 days
10
2% of all-time downloads
All-time downloads
416
Public
Parameters
151K
1.2 MB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors602 KB · 99%
From the Hugging Face model README
Baseline attacker CGPC used in ICML2025 paper "X-Transfer Attacks: Towards Super Transferable Adversarial Attacks on CLIP"
Code: https://github.com/HanxunH/XTransferBench
X-TransferBench is an open-source benchmark that provides a comprehensive collection of UAPs/TUAPs capable of achieving universal adversarial transferability. These UAPs can simultaneously transfer across data, domains, models, and tasks. Essentially, they represent perturbations that can transform any sample into an adversarial example, effective against any model and for any task.
from XTransferBench import attacker
attacker = XTransferBench.zoo.load_attacker("linf_non_targeted", "cpgc_clip_rn101_mscoco")
images = # torch.Tensor [b, 3, h, w], values should be between 0 and 1
adv_images = attacker(images) # adversarial examples
If you use this model in your work, please cite the accompanying paper:
@article{fang2024one,
title={One perturbation is enough: On generating universal adversarial perturbations against vision-language pre-training models},
author={Fang, Hao and Kong, Jiawei and Yu, Wenbo and Chen, Bin and Li, Jiawei and Wu, Hao and Xia, Shutao and Xu, Ke},
journal={arXiv preprint arXiv:2406.05491},
year={2024}
}
@inproceedings{
huang2025xtransfer,
title={X-Transfer Attacks: Towards Super Transferable Adversarial Attacks on CLIP},
author={Hanxun Huang and Sarah Erfani and Yige Li and Xingjun Ma and James Bailey},
booktitle={ICML},
year={2025},
}
The perturbations provided in this project are intended solely for research purposes. They are shared with the academic and research community to advance understanding of super transferable attacks and defenses.
Any other use of the data, model weights, or methods derived from this project, including but not limited to unauthorized access, modification, or malicious deployment, is strictly prohibited and not endorsed by this project. The authors and contributors of this project are not responsible for any misuse or unethical applications of the provided resources. Users are expected to adhere to ethical standards and ensure that their use of this research aligns with applicable laws and guidelines.