Spaces:
Running
on
Zero
Running
on
Zero
Commit
·
d277748
1
Parent(s):
09ec9be
repair-cls-2
Browse files
app.py
CHANGED
|
@@ -519,7 +519,7 @@ def load_examples(d, stack=False):
|
|
| 519 |
try:
|
| 520 |
img = tifffile.imread(fp) if f.endswith(('.tif','.tiff')) else np.array(Image.open(fp).convert("L"))
|
| 521 |
if stack and img.ndim == 3: img = np.mean(img, axis=0)
|
| 522 |
-
ex.append((numpy_to_pil(img, "L"),
|
| 523 |
except: pass
|
| 524 |
return ex
|
| 525 |
|
|
|
|
| 519 |
try:
|
| 520 |
img = tifffile.imread(fp) if f.endswith(('.tif','.tiff')) else np.array(Image.open(fp).convert("L"))
|
| 521 |
if stack and img.ndim == 3: img = np.mean(img, axis=0)
|
| 522 |
+
ex.append((numpy_to_pil(img, "L"), f))
|
| 523 |
except: pass
|
| 524 |
return ex
|
| 525 |
|
example_images_cls/cls_input_1754670277543.png
DELETED
Git LFS Details
|
example_images_cls/cls_input_1754670358223.png
DELETED
Git LFS Details
|
example_images_cls/cls_input_1754670363268.png
DELETED
Git LFS Details
|
example_images_cls/cls_input_1754670366893.png
DELETED
Git LFS Details
|
example_images_cls/cls_input_1754670372624.png
DELETED
Git LFS Details
|