Spaces:
Running
Running
Linoy Tsaban
commited on
Commit
•
db41b3f
1
Parent(s):
a217b80
Update app.py
Browse files
app.py
CHANGED
@@ -140,7 +140,7 @@ def invert_and_reconstruct(
|
|
140 |
x0 = load_512(input_image, device=device)
|
141 |
|
142 |
if do_inversion or randomize_seed:
|
143 |
-
invert and retrieve noise maps and latent
|
144 |
zs_tensor, wts_tensor = invert(x0 =x0 , prompt_src=src_prompt, num_diffusion_steps=steps, cfg_scale_src=src_cfg_scale)
|
145 |
wts = gr.State(value=wts_tensor)
|
146 |
zs = gr.State(value=zs_tensor)
|
|
|
140 |
x0 = load_512(input_image, device=device)
|
141 |
|
142 |
if do_inversion or randomize_seed:
|
143 |
+
# invert and retrieve noise maps and latent
|
144 |
zs_tensor, wts_tensor = invert(x0 =x0 , prompt_src=src_prompt, num_diffusion_steps=steps, cfg_scale_src=src_cfg_scale)
|
145 |
wts = gr.State(value=wts_tensor)
|
146 |
zs = gr.State(value=zs_tensor)
|