Spaces:
Runtime error
Runtime error
Update codes.py
Browse files
codes.py
CHANGED
|
@@ -97,7 +97,7 @@ def make_foreground_mask(tokens, standard_array, grid_size, background_threshold
|
|
| 97 |
mask = binary_closing(mask)
|
| 98 |
return mask.flatten()
|
| 99 |
|
| 100 |
-
def render_patch_pca3(tokens, standard_array, smaller_edge_size = 448,background_threshold = 0.05,
|
| 101 |
apply_opening = False, apply_closing = False):
|
| 102 |
mask = make_foreground_mask(tokens, standard_array, grid_size,
|
| 103 |
background_threshold = 0,apply_opening=True, apply_closing=True)
|
|
|
|
| 97 |
mask = binary_closing(mask)
|
| 98 |
return mask.flatten()
|
| 99 |
|
| 100 |
+
def render_patch_pca3(tokens, standard_array,grid_size, smaller_edge_size = 448,background_threshold = 0.05,
|
| 101 |
apply_opening = False, apply_closing = False):
|
| 102 |
mask = make_foreground_mask(tokens, standard_array, grid_size,
|
| 103 |
background_threshold = 0,apply_opening=True, apply_closing=True)
|