Spaces:
Running
on
Zero
Running
on
Zero
update cluster UI
Browse files
app.py
CHANGED
@@ -1832,7 +1832,7 @@ with demo:
|
|
1832 |
|
1833 |
with gr.Column(scale=5, min_width=200):
|
1834 |
output_gallery = make_output_images_section()
|
1835 |
-
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=
|
1836 |
[
|
1837 |
model_dropdown, layer_slider, node_type_dropdown, num_eig_slider,
|
1838 |
affinity_focal_gamma_slider, num_sample_ncut_slider, ncut_knn_slider, ncut_indirect_connection, ncut_make_orthogonal,
|
@@ -1872,7 +1872,7 @@ with demo:
|
|
1872 |
add_download_button(output_gallery, "ncut_embed")
|
1873 |
norm_gallery = gr.Gallery(value=[], label="Eigenvector Magnitude", show_label=True, elem_id="eig_norm", columns=[3], rows=[1], object_fit="contain", height="auto", show_share_button=True, preview=False, interactive=False)
|
1874 |
add_download_button(norm_gallery, "eig_norm")
|
1875 |
-
cluster_gallery = gr.Gallery(value=[], label="Clusters", show_label=True, elem_id="clusters", columns=[2], rows=[4], object_fit="contain", height=
|
1876 |
add_download_button(cluster_gallery, "clusters")
|
1877 |
[
|
1878 |
model_dropdown, layer_slider, node_type_dropdown, num_eig_slider,
|
@@ -2045,7 +2045,7 @@ with demo:
|
|
2045 |
add_download_button(l1_gallery, "ncut_embed_recur1")
|
2046 |
l1_norm_gallery = gr.Gallery(value=[], label="Recursion #1 Eigenvector Magnitude", show_label=True, elem_id="eig_norm", columns=[3], rows=[1], object_fit="contain", height="auto", show_share_button=True, preview=False, interactive=False)
|
2047 |
add_download_button(l1_norm_gallery, "eig_norm_recur1")
|
2048 |
-
l1_cluster_gallery = gr.Gallery(value=[], label="Recursion #1 Clusters", show_label=True, elem_id="clusters", columns=[2], rows=[4], object_fit="contain", height=
|
2049 |
add_download_button(l1_cluster_gallery, "clusters_recur1")
|
2050 |
with gr.Column(scale=5, min_width=200):
|
2051 |
gr.Markdown('### Output (Recursion #2)')
|
@@ -2054,7 +2054,7 @@ with demo:
|
|
2054 |
add_download_button(l2_gallery, "ncut_embed_recur2")
|
2055 |
l2_norm_gallery = gr.Gallery(value=[], label="Recursion #2 Eigenvector Magnitude", show_label=True, elem_id="eig_norm", columns=[3], rows=[1], object_fit="contain", height="auto", show_share_button=True, preview=False, interactive=False)
|
2056 |
add_download_button(l2_norm_gallery, "eig_norm_recur2")
|
2057 |
-
l2_cluster_gallery = gr.Gallery(value=[], label="Recursion #2 Clusters", show_label=True, elem_id="clusters", columns=[2], rows=[4], object_fit="contain", height=
|
2058 |
add_download_button(l2_cluster_gallery, "clusters_recur2")
|
2059 |
with gr.Column(scale=5, min_width=200):
|
2060 |
gr.Markdown('### Output (Recursion #3)')
|
@@ -2063,7 +2063,7 @@ with demo:
|
|
2063 |
add_download_button(l3_gallery, "ncut_embed_recur3")
|
2064 |
l3_norm_gallery = gr.Gallery(value=[], label="Recursion #3 Eigenvector Magnitude", show_label=True, elem_id="eig_norm", columns=[3], rows=[1], object_fit="contain", height="auto", show_share_button=True, preview=False, interactive=False)
|
2065 |
add_download_button(l3_norm_gallery, "eig_norm_recur3")
|
2066 |
-
l3_cluster_gallery = gr.Gallery(value=[], label="Recursion #3 Clusters", show_label=True, elem_id="clusters", columns=[2], rows=[4], object_fit="contain", height=
|
2067 |
add_download_button(l3_cluster_gallery, "clusters_recur3")
|
2068 |
|
2069 |
with gr.Row():
|
@@ -2440,7 +2440,7 @@ with demo:
|
|
2440 |
add_download_button(output_gallery, f"ncut_embed")
|
2441 |
norm_gallery = gr.Gallery(value=[], label="Eigenvector Magnitude", show_label=True, elem_id=f"eig_norm{i_model}", columns=[3], rows=[1], object_fit="contain", height="auto", show_share_button=True, preview=False, interactive=False)
|
2442 |
add_download_button(norm_gallery, f"eig_norm")
|
2443 |
-
cluster_gallery = gr.Gallery(value=[], label="Clusters", show_label=True, elem_id=f"clusters{i_model}", columns=[2], rows=[4], object_fit="contain", height=
|
2444 |
add_download_button(cluster_gallery, f"clusters")
|
2445 |
[
|
2446 |
model_dropdown, layer_slider, node_type_dropdown, num_eig_slider,
|
|
|
1832 |
|
1833 |
with gr.Column(scale=5, min_width=200):
|
1834 |
output_gallery = make_output_images_section()
|
1835 |
+
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=False, interactive=False)
|
1836 |
[
|
1837 |
model_dropdown, layer_slider, node_type_dropdown, num_eig_slider,
|
1838 |
affinity_focal_gamma_slider, num_sample_ncut_slider, ncut_knn_slider, ncut_indirect_connection, ncut_make_orthogonal,
|
|
|
1872 |
add_download_button(output_gallery, "ncut_embed")
|
1873 |
norm_gallery = gr.Gallery(value=[], label="Eigenvector Magnitude", show_label=True, elem_id="eig_norm", columns=[3], rows=[1], object_fit="contain", height="auto", show_share_button=True, preview=False, interactive=False)
|
1874 |
add_download_button(norm_gallery, "eig_norm")
|
1875 |
+
cluster_gallery = gr.Gallery(value=[], label="Clusters", show_label=True, elem_id="clusters", columns=[2], rows=[4], object_fit="contain", height="auto", show_share_button=True, preview=False, interactive=False)
|
1876 |
add_download_button(cluster_gallery, "clusters")
|
1877 |
[
|
1878 |
model_dropdown, layer_slider, node_type_dropdown, num_eig_slider,
|
|
|
2045 |
add_download_button(l1_gallery, "ncut_embed_recur1")
|
2046 |
l1_norm_gallery = gr.Gallery(value=[], label="Recursion #1 Eigenvector Magnitude", show_label=True, elem_id="eig_norm", columns=[3], rows=[1], object_fit="contain", height="auto", show_share_button=True, preview=False, interactive=False)
|
2047 |
add_download_button(l1_norm_gallery, "eig_norm_recur1")
|
2048 |
+
l1_cluster_gallery = gr.Gallery(value=[], label="Recursion #1 Clusters", show_label=True, elem_id="clusters", columns=[2], rows=[4], object_fit="contain", height='auto', show_share_button=True, preview=False, interactive=False)
|
2049 |
add_download_button(l1_cluster_gallery, "clusters_recur1")
|
2050 |
with gr.Column(scale=5, min_width=200):
|
2051 |
gr.Markdown('### Output (Recursion #2)')
|
|
|
2054 |
add_download_button(l2_gallery, "ncut_embed_recur2")
|
2055 |
l2_norm_gallery = gr.Gallery(value=[], label="Recursion #2 Eigenvector Magnitude", show_label=True, elem_id="eig_norm", columns=[3], rows=[1], object_fit="contain", height="auto", show_share_button=True, preview=False, interactive=False)
|
2056 |
add_download_button(l2_norm_gallery, "eig_norm_recur2")
|
2057 |
+
l2_cluster_gallery = gr.Gallery(value=[], label="Recursion #2 Clusters", show_label=True, elem_id="clusters", columns=[2], rows=[4], object_fit="contain", height='auto', show_share_button=True, preview=False, interactive=False)
|
2058 |
add_download_button(l2_cluster_gallery, "clusters_recur2")
|
2059 |
with gr.Column(scale=5, min_width=200):
|
2060 |
gr.Markdown('### Output (Recursion #3)')
|
|
|
2063 |
add_download_button(l3_gallery, "ncut_embed_recur3")
|
2064 |
l3_norm_gallery = gr.Gallery(value=[], label="Recursion #3 Eigenvector Magnitude", show_label=True, elem_id="eig_norm", columns=[3], rows=[1], object_fit="contain", height="auto", show_share_button=True, preview=False, interactive=False)
|
2065 |
add_download_button(l3_norm_gallery, "eig_norm_recur3")
|
2066 |
+
l3_cluster_gallery = gr.Gallery(value=[], label="Recursion #3 Clusters", show_label=True, elem_id="clusters", columns=[2], rows=[4], object_fit="contain", height='auto', show_share_button=True, preview=False, interactive=False)
|
2067 |
add_download_button(l3_cluster_gallery, "clusters_recur3")
|
2068 |
|
2069 |
with gr.Row():
|
|
|
2440 |
add_download_button(output_gallery, f"ncut_embed")
|
2441 |
norm_gallery = gr.Gallery(value=[], label="Eigenvector Magnitude", show_label=True, elem_id=f"eig_norm{i_model}", columns=[3], rows=[1], object_fit="contain", height="auto", show_share_button=True, preview=False, interactive=False)
|
2442 |
add_download_button(norm_gallery, f"eig_norm")
|
2443 |
+
cluster_gallery = gr.Gallery(value=[], label="Clusters", show_label=True, elem_id=f"clusters{i_model}", columns=[2], rows=[4], object_fit="contain", height="auto", show_share_button=True, preview=False, interactive=False)
|
2444 |
add_download_button(cluster_gallery, f"clusters")
|
2445 |
[
|
2446 |
model_dropdown, layer_slider, node_type_dropdown, num_eig_slider,
|