Spaces:
Running
Running
Changed Grid Size
Browse files
app.py
CHANGED
@@ -81,7 +81,7 @@ def process_image(
|
|
81 |
GRIDSIZE: int,
|
82 |
) -> Tuple[np.ndarray, np.ndarray, np.ndarray, np.ndarray]:
|
83 |
# Validate GRID_SIZE
|
84 |
-
if GRIDSIZE is None
|
85 |
GRIDSIZE = 9
|
86 |
|
87 |
itti_saliency_map, itti_heatmap = detect_and_annotate(
|
@@ -100,8 +100,8 @@ def process_image(
|
|
100 |
)
|
101 |
|
102 |
grid_size_Component = gr.Slider(
|
103 |
-
minimum=
|
104 |
-
maximum=
|
105 |
value=32,
|
106 |
step=1,
|
107 |
label="Grid Size",
|
|
|
81 |
GRIDSIZE: int,
|
82 |
) -> Tuple[np.ndarray, np.ndarray, np.ndarray, np.ndarray]:
|
83 |
# Validate GRID_SIZE
|
84 |
+
if GRIDSIZE is None or GRIDSIZE < 3:
|
85 |
GRIDSIZE = 9
|
86 |
|
87 |
itti_saliency_map, itti_heatmap = detect_and_annotate(
|
|
|
100 |
)
|
101 |
|
102 |
grid_size_Component = gr.Slider(
|
103 |
+
minimum=3,
|
104 |
+
maximum=100,
|
105 |
value=32,
|
106 |
step=1,
|
107 |
label="Grid Size",
|