Spaces:
Running
on
Zero
Running
on
Zero
better UI label, fix MAE-l
Browse files
app.py
CHANGED
|
@@ -1170,7 +1170,7 @@ def add_output_images_buttons(output_gallery):
|
|
| 1170 |
|
| 1171 |
def make_output_images_section():
|
| 1172 |
gr.Markdown('### Output Images')
|
| 1173 |
-
output_gallery = gr.Gallery(format='png', value=[], label="NCUT Embedding", show_label=
|
| 1174 |
add_output_images_buttons(output_gallery)
|
| 1175 |
return output_gallery
|
| 1176 |
|
|
@@ -1275,7 +1275,7 @@ with demo:
|
|
| 1275 |
|
| 1276 |
with gr.Column(scale=5, min_width=200):
|
| 1277 |
output_gallery = make_output_images_section()
|
| 1278 |
-
cluster_gallery = gr.Gallery(value=[], label="Clusters", show_label=
|
| 1279 |
[
|
| 1280 |
model_dropdown, layer_slider, node_type_dropdown, num_eig_slider,
|
| 1281 |
affinity_focal_gamma_slider, num_sample_ncut_slider, knn_ncut_slider,
|
|
@@ -1379,15 +1379,15 @@ with demo:
|
|
| 1379 |
with gr.Row():
|
| 1380 |
with gr.Column(scale=5, min_width=200):
|
| 1381 |
gr.Markdown('### Output (Recursion #1)')
|
| 1382 |
-
l1_gallery = gr.Gallery(format='png', value=[], label="Recursion #1", show_label=
|
| 1383 |
add_output_images_buttons(l1_gallery)
|
| 1384 |
with gr.Column(scale=5, min_width=200):
|
| 1385 |
gr.Markdown('### Output (Recursion #2)')
|
| 1386 |
-
l2_gallery = gr.Gallery(format='png', value=[], label="Recursion #2", show_label=
|
| 1387 |
add_output_images_buttons(l2_gallery)
|
| 1388 |
with gr.Column(scale=5, min_width=200):
|
| 1389 |
gr.Markdown('### Output (Recursion #3)')
|
| 1390 |
-
l3_gallery = gr.Gallery(format='png', value=[], label="Recursion #3", show_label=
|
| 1391 |
add_output_images_buttons(l3_gallery)
|
| 1392 |
with gr.Row():
|
| 1393 |
with gr.Column(scale=5, min_width=200):
|
|
@@ -1622,13 +1622,13 @@ with demo:
|
|
| 1622 |
# l3_gallery = gr.Gallery(format='png', value=[], label="Recursion #3", show_label=False, elem_id="ncut_l3", columns=[3], rows=[5], object_fit="contain", height="auto", show_fullscreen_button=True, interactive=False)
|
| 1623 |
# add_output_images_buttons(l3_gallery)
|
| 1624 |
gr.Markdown('### Output (Recursion #1)')
|
| 1625 |
-
l1_gallery = gr.Gallery(format='png', value=[], label="Recursion #1", show_label=
|
| 1626 |
add_output_images_buttons(l1_gallery)
|
| 1627 |
gr.Markdown('### Output (Recursion #2)')
|
| 1628 |
-
l2_gallery = gr.Gallery(format='png', value=[], label="Recursion #2", show_label=
|
| 1629 |
add_output_images_buttons(l2_gallery)
|
| 1630 |
gr.Markdown('### Output (Recursion #3)')
|
| 1631 |
-
l3_gallery = gr.Gallery(format='png', value=[], label="Recursion #3", show_label=
|
| 1632 |
add_output_images_buttons(l3_gallery)
|
| 1633 |
|
| 1634 |
with gr.Row():
|
|
|
|
| 1170 |
|
| 1171 |
def make_output_images_section():
|
| 1172 |
gr.Markdown('### Output Images')
|
| 1173 |
+
output_gallery = gr.Gallery(format='png', value=[], label="NCUT Embedding", show_label=True, elem_id="ncut", columns=[3], rows=[1], object_fit="contain", height="auto", show_share_button=True, interactive=False)
|
| 1174 |
add_output_images_buttons(output_gallery)
|
| 1175 |
return output_gallery
|
| 1176 |
|
|
|
|
| 1275 |
|
| 1276 |
with gr.Column(scale=5, min_width=200):
|
| 1277 |
output_gallery = make_output_images_section()
|
| 1278 |
+
cluster_gallery = gr.Gallery(value=[], label="Clusters", show_label=True, elem_id="clusters", columns=[5], rows=[2], object_fit="contain", height="auto", show_share_button=True, preview=True, interactive=False)
|
| 1279 |
[
|
| 1280 |
model_dropdown, layer_slider, node_type_dropdown, num_eig_slider,
|
| 1281 |
affinity_focal_gamma_slider, num_sample_ncut_slider, knn_ncut_slider,
|
|
|
|
| 1379 |
with gr.Row():
|
| 1380 |
with gr.Column(scale=5, min_width=200):
|
| 1381 |
gr.Markdown('### Output (Recursion #1)')
|
| 1382 |
+
l1_gallery = gr.Gallery(format='png', value=[], label="Recursion #1", show_label=True, elem_id="ncut_l1", columns=[3], rows=[5], object_fit="contain", height="auto", show_fullscreen_button=True, interactive=False)
|
| 1383 |
add_output_images_buttons(l1_gallery)
|
| 1384 |
with gr.Column(scale=5, min_width=200):
|
| 1385 |
gr.Markdown('### Output (Recursion #2)')
|
| 1386 |
+
l2_gallery = gr.Gallery(format='png', value=[], label="Recursion #2", show_label=True, elem_id="ncut_l2", columns=[3], rows=[5], object_fit="contain", height="auto", show_fullscreen_button=True, interactive=False)
|
| 1387 |
add_output_images_buttons(l2_gallery)
|
| 1388 |
with gr.Column(scale=5, min_width=200):
|
| 1389 |
gr.Markdown('### Output (Recursion #3)')
|
| 1390 |
+
l3_gallery = gr.Gallery(format='png', value=[], label="Recursion #3", show_label=True, elem_id="ncut_l3", columns=[3], rows=[5], object_fit="contain", height="auto", show_fullscreen_button=True, interactive=False)
|
| 1391 |
add_output_images_buttons(l3_gallery)
|
| 1392 |
with gr.Row():
|
| 1393 |
with gr.Column(scale=5, min_width=200):
|
|
|
|
| 1622 |
# l3_gallery = gr.Gallery(format='png', value=[], label="Recursion #3", show_label=False, elem_id="ncut_l3", columns=[3], rows=[5], object_fit="contain", height="auto", show_fullscreen_button=True, interactive=False)
|
| 1623 |
# add_output_images_buttons(l3_gallery)
|
| 1624 |
gr.Markdown('### Output (Recursion #1)')
|
| 1625 |
+
l1_gallery = gr.Gallery(format='png', value=[], label="Recursion #1", show_label=True, elem_id="ncut_l1", columns=[100], rows=[1], object_fit="contain", height="auto", show_fullscreen_button=True, interactive=False, preview=True)
|
| 1626 |
add_output_images_buttons(l1_gallery)
|
| 1627 |
gr.Markdown('### Output (Recursion #2)')
|
| 1628 |
+
l2_gallery = gr.Gallery(format='png', value=[], label="Recursion #2", show_label=True, elem_id="ncut_l2", columns=[100], rows=[1], object_fit="contain", height="auto", show_fullscreen_button=True, interactive=False, preview=True)
|
| 1629 |
add_output_images_buttons(l2_gallery)
|
| 1630 |
gr.Markdown('### Output (Recursion #3)')
|
| 1631 |
+
l3_gallery = gr.Gallery(format='png', value=[], label="Recursion #3", show_label=True, elem_id="ncut_l3", columns=[100], rows=[1], object_fit="contain", height="auto", show_fullscreen_button=True, interactive=False, preview=True)
|
| 1632 |
add_output_images_buttons(l3_gallery)
|
| 1633 |
|
| 1634 |
with gr.Row():
|