Spaces:
Running
on
Zero
Running
on
Zero
Commit
·
c8ecc15
1
Parent(s):
8382d91
typo
Browse files
app.py
CHANGED
@@ -95,7 +95,10 @@ def infer(img_path, seed=0, randomize_seed=False, timesteps=20, cfg_scale=7.5, p
|
|
95 |
|
96 |
# Transform to PIL images
|
97 |
all_images = [
|
98 |
-
(
|
|
|
|
|
|
|
99 |
for reconst_k, k_keep in zip(all_reconst, K_KEEP_LIST)
|
100 |
]
|
101 |
|
|
|
95 |
|
96 |
# Transform to PIL images
|
97 |
all_images = [
|
98 |
+
(
|
99 |
+
TF.to_pil_image(denormalize(reconst_k).clamp(0,1)),
|
100 |
+
'1 token' if k_keep == 1 else f'{k_keep} tokens'
|
101 |
+
)
|
102 |
for reconst_k, k_keep in zip(all_reconst, K_KEEP_LIST)
|
103 |
]
|
104 |
|