Skip to content

deep-kaixun/APA

Repository files navigation

APA

Requirements

  • Python3
  • pytorch >=2.1.0 and torchvision
  • diffusers
  • peft
  • transformers
  • accelerate

Model

cd model_ckpt
bash install.sh

Installed from ACA

Datasets

We provide subset in images_un.

All data can be installed from there

Attack

Visual Consistency Alignment

python visual_alignment.py

Attack Effectiveness Alignment

#skip-gradient
python attack_alignment.py --gradient_back skip-gradient

#gradient checkpoint
python attack_alignment.py --gradient_back gc

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published