Spaces:
Runtime error
Runtime error
Linoy Tsaban
commited on
Commit
·
a02e0e3
1
Parent(s):
c6ff99b
Update app.py
Browse files
app.py
CHANGED
|
@@ -157,23 +157,25 @@ def edit(input_image,
|
|
| 157 |
steps=100,
|
| 158 |
skip=36,
|
| 159 |
tar_cfg_scale=15,
|
| 160 |
-
|
| 161 |
-
|
| 162 |
-
|
| 163 |
-
|
| 164 |
-
|
| 165 |
|
| 166 |
):
|
| 167 |
|
| 168 |
# SEGA
|
| 169 |
# parse concepts and neg guidance
|
| 170 |
-
|
|
|
|
|
|
|
| 171 |
editing_args = dict(
|
| 172 |
-
editing_prompt =
|
| 173 |
-
reverse_editing_direction =
|
| 174 |
-
edit_warmup_steps=
|
| 175 |
-
edit_guidance_scale=
|
| 176 |
-
edit_threshold=
|
| 177 |
edit_momentum_scale=0.5,
|
| 178 |
edit_mom_beta=0.6,
|
| 179 |
eta=1,
|
|
|
|
| 157 |
steps=100,
|
| 158 |
skip=36,
|
| 159 |
tar_cfg_scale=15,
|
| 160 |
+
edit_concepts = [],
|
| 161 |
+
guidnace_scales = [],
|
| 162 |
+
warmups = [],
|
| 163 |
+
neg_guidance = [],
|
| 164 |
+
thresholds = []
|
| 165 |
|
| 166 |
):
|
| 167 |
|
| 168 |
# SEGA
|
| 169 |
# parse concepts and neg guidance
|
| 170 |
+
|
| 171 |
+
|
| 172 |
+
|
| 173 |
editing_args = dict(
|
| 174 |
+
editing_prompt = edit_concepts,
|
| 175 |
+
reverse_editing_direction = neg_guidance,
|
| 176 |
+
edit_warmup_steps=warmups,
|
| 177 |
+
edit_guidance_scale=guidnace_scales,
|
| 178 |
+
edit_threshold=thresholds,
|
| 179 |
edit_momentum_scale=0.5,
|
| 180 |
edit_mom_beta=0.6,
|
| 181 |
eta=1,
|