-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrun_art.sh
123 lines (105 loc) · 3.51 KB
/
run_art.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
#!/bin/bash
# path to the llava lora
LLAVA_LORA_PATH="glli/ART_GuideModel" # path to the llava lora
LLAVA_MODEL_PATH="liuhaotian/llava-v1.6-mistral-7b"
# path to the llama lora
LLAMA_LORA_PATH="glli/ART_WriterModel" # path to the llama lora
LLAMA_MODEL_PATH="meta-llama/Llama-2-7b-hf" # path to the llama 2 7b model
SD_VERSION="1.5"
SEED=1234
EXP_FOLDER="test"
CATEGORY="sexual"
ROUND=50
GUIDANCE="7.5"
HEIGHT=512
WIDTH=512
python run_agents.py --llama_model_path $LLAMA_MODEL_PATH \
--llama_lora_path $LLAMA_LORA_PATH \
--sd_version $SD_VERSION \
--llava_model_path $LLAVA_MODEL_PATH \
--llava_lora_path $LLAVA_LORA_PATH \
--seed $SEED \
--exp_folder $EXP_FOLDER \
--concept $CATEGORY \
--round $ROUND \
--guidance_scale $GUIDANCE \
--height $HEIGHT \
--width $WIDTH
CATEGORY="hate"
python run_agents.py --llama_model_path $LLAMA_MODEL_PATH \
--llama_lora_path $LLAMA_LORA_PATH \
--sd_version $SD_VERSION \
--llava_model_path $LLAVA_MODEL_PATH \
--llava_lora_path $LLAVA_LORA_PATH \
--seed $SEED \
--exp_folder $EXP_FOLDER \
--concept $CATEGORY \
--round $ROUND \
--guidance_scale $GUIDANCE \
--height $HEIGHT \
--width $WIDTH
CATEGORY="harassment"
python run_agents.py --llama_model_path $LLAMA_MODEL_PATH \
--llama_lora_path $LLAMA_LORA_PATH \
--sd_version $SD_VERSION \
--llava_model_path $LLAVA_MODEL_PATH \
--llava_lora_path $LLAVA_LORA_PATH \
--seed $SEED \
--exp_folder $EXP_FOLDER \
--concept $CATEGORY \
--round $ROUND \
--guidance_scale $GUIDANCE \
--height $HEIGHT \
--width $WIDTH
CATEGORY="violence"
python run_agents.py --llama_model_path $LLAMA_MODEL_PATH \
--llama_lora_path $LLAMA_LORA_PATH \
--sd_version $SD_VERSION \
--llava_model_path $LLAVA_MODEL_PATH \
--llava_lora_path $LLAVA_LORA_PATH \
--seed $SEED \
--exp_folder $EXP_FOLDER \
--concept $CATEGORY \
--round $ROUND \
--guidance_scale $GUIDANCE \
--height $HEIGHT \
--width $WIDTH
CATEGORY="self-harm"
python run_agents.py --llama_model_path $LLAMA_MODEL_PATH \
--llama_lora_path $LLAMA_LORA_PATH \
--sd_version $SD_VERSION \
--llava_model_path $LLAVA_MODEL_PATH \
--llava_lora_path $LLAVA_LORA_PATH \
--seed $SEED \
--exp_folder $EXP_FOLDER \
--concept $CATEGORY \
--round $ROUND \
--guidance_scale $GUIDANCE \
--height $HEIGHT \
--width $WIDTH
CATEGORY="shocking"
python run_agents.py --llama_model_path $LLAMA_MODEL_PATH \
--llama_lora_path $LLAMA_LORA_PATH \
--sd_version $SD_VERSION \
--llava_model_path $LLAVA_MODEL_PATH \
--llava_lora_path $LLAVA_LORA_PATH \
--seed $SEED \
--exp_folder $EXP_FOLDER \
--concept $CATEGORY \
--round $ROUND \
--guidance_scale $GUIDANCE \
--height $HEIGHT \
--width $WIDTH
CATEGORY="illegal_activity"
python run_agents.py --llama_model_path $LLAMA_MODEL_PATH \
--llama_lora_path $LLAMA_LORA_PATH \
--sd_version $SD_VERSION \
--llava_model_path $LLAVA_MODEL_PATH \
--llava_lora_path $LLAVA_LORA_PATH \
--seed $SEED \
--exp_folder $EXP_FOLDER \
--concept $CATEGORY \
--round $ROUND \
--guidance_scale $GUIDANCE \
--height $HEIGHT \
--width $WIDTH