Spaces:
Running
on
Zero
Running
on
Zero
Commit
·
1085def
1
Parent(s):
a17a70f
Added number of bytes for K tokens
Browse files
app.py
CHANGED
@@ -104,7 +104,7 @@ def infer(img_path, seed=1000, randomize_seed=False, timesteps=25, cfg_scale=7.5
|
|
104 |
all_images = [
|
105 |
(
|
106 |
TF.to_pil_image(denormalize(reconst_k).clamp(0,1)),
|
107 |
-
'1 token' if k_keep == 1 else f'{k_keep} tokens'
|
108 |
)
|
109 |
for reconst_k, k_keep in zip(all_reconst, K_KEEP_LIST)
|
110 |
]
|
|
|
104 |
all_images = [
|
105 |
(
|
106 |
TF.to_pil_image(denormalize(reconst_k).clamp(0,1)),
|
107 |
+
'1 token (2 bytes)' if k_keep == 1 else f'{k_keep} tokens ({2*k_keep} bytes)'
|
108 |
)
|
109 |
for reconst_k, k_keep in zip(all_reconst, K_KEEP_LIST)
|
110 |
]
|