Spaces:
Running
on
A10G
Running
on
A10G
Linoy Tsaban
commited on
Commit
•
7b367e9
1
Parent(s):
b9a2245
Update app.py
Browse files
app.py
CHANGED
@@ -127,7 +127,7 @@ def invert_and_reconstruct(
|
|
127 |
#pure DDPM output
|
128 |
pure_ddpm_out = sample(wt, zs, wts, prompt_tar=tar_prompt,
|
129 |
cfg_scale_tar=tar_cfg_scale, skip=skip)
|
130 |
-
inversion_map['
|
131 |
inversion_map['zs'] = zs
|
132 |
inversion_map['wts'] = wts
|
133 |
|
@@ -168,7 +168,7 @@ def edit(input_image,
|
|
168 |
# return pure_ddpm_out, pure_ddpm_out
|
169 |
if not bool(inversion_map):
|
170 |
raise gr.Error("Must invert before editing")
|
171 |
-
|
172 |
|
173 |
# SEGA
|
174 |
# parse concepts and neg guidance
|
|
|
127 |
#pure DDPM output
|
128 |
pure_ddpm_out = sample(wt, zs, wts, prompt_tar=tar_prompt,
|
129 |
cfg_scale_tar=tar_cfg_scale, skip=skip)
|
130 |
+
inversion_map['latnets'] = latnets
|
131 |
inversion_map['zs'] = zs
|
132 |
inversion_map['wts'] = wts
|
133 |
|
|
|
168 |
# return pure_ddpm_out, pure_ddpm_out
|
169 |
if not bool(inversion_map):
|
170 |
raise gr.Error("Must invert before editing")
|
171 |
+
latnets, zs, wts = inversion_map['latnets'],inversion_map['zs'],inversion_map['wts']
|
172 |
|
173 |
# SEGA
|
174 |
# parse concepts and neg guidance
|