Spaces:
Running
on
A10G
Running
on
A10G
Linoy Tsaban
commited on
Commit
•
bd09ba4
1
Parent(s):
f0c4137
Update app.py
Browse files
app.py
CHANGED
@@ -108,8 +108,7 @@ def load_and_invert(
|
|
108 |
# x0 = load_512(input_image, device=device).to(torch.float16)
|
109 |
|
110 |
if do_inversion or randomize_seed:
|
111 |
-
|
112 |
-
seed = randomize_seed_fn()
|
113 |
seed_everything(seed)
|
114 |
# invert and retrieve noise maps and latent
|
115 |
zs_tensor, wts_tensor = pipe.invert(
|
|
|
108 |
# x0 = load_512(input_image, device=device).to(torch.float16)
|
109 |
|
110 |
if do_inversion or randomize_seed:
|
111 |
+
seed = randomize_seed_fn(seed, randomize_seed)
|
|
|
112 |
seed_everything(seed)
|
113 |
# invert and retrieve noise maps and latent
|
114 |
zs_tensor, wts_tensor = pipe.invert(
|