Skip to content

ydc123/MMP-Attack

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MMP-Attack

This repository is the official repository for our paper "Cheating Suffix: Targeted Attack to Text-To-Image Diffusion Models with Multi-Modal Priors"

bounding box

Setup

Install PyTorch, diffusers==0.17.0, and transformers==4.29.1.

Download the Stable Diffusion model and CLIP model.

Running Commands

You can execute the following command to perform a targeted attack, transforming the category "car" into "bird":

python attack.py --ori_sentence "a photo of car" --target_word bird 

About

Official repository for "Cheating Suffix: Targeted Attack to Text-To-Image Diffusion Models with Multi-Modal Priors"

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages