From d58e8d5c7614dff93180ccf95afb5c0ab3725bf6 Mon Sep 17 00:00:00 2001 From: Liu <20925537+Fab-Liu@users.noreply.github.com> Date: Mon, 13 May 2024 13:35:36 +0800 Subject: [PATCH] run command error --- .gitignore | 2 ++ README.md | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..237f8e5 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ + +/.history diff --git a/README.md b/README.md index f2468d6..49e2602 100644 --- a/README.md +++ b/README.md @@ -121,13 +121,13 @@ Generate a visual adversarial example within a distortion constraint of epsilon The argument can be adjusted (e.g., --eps=32,64,128) to evaluate the effectiveness of the attacks under different distortion budgets. ```bash -python minigpt_visual_attack.py --cfg-path eval_configs/minigpt4_eval.yaml --gpu-id 0 --n_iters 5000 --constrained --eps 16 --alpha 1 --save_dir visual_constrained_eps_16 +python minigpt_visual_attack.py --cfg_path eval_configs/minigpt4_eval.yaml --gpu_id 0 --n_iters 5000 --constrained --eps 16 --alpha 1 --save_dir visual_constrained_eps_16 ``` When there is no need for "visual stealthiness", one can use the following command to run unconstrained attacks (the adversarial image can take any values within the legitimate range of pixel values). ```bash -python minigpt_visual_attack.py --cfg-path eval_configs/minigpt4_eval.yaml --gpu-id 0 --n_iters 5000 --alpha 1 --save_dir visual_unconstrained +python minigpt_visual_attack.py --cfg_path eval_configs/minigpt4_eval.yaml --gpu_id 0 --n_iters 5000 --alpha 1 --save_dir visual_unconstrained ```