Spaces:
Running
on
Zero
Running
on
Zero
update fpn dino
Browse files- app.py +4 -2
- requirements.txt +1 -1
app.py
CHANGED
|
@@ -4395,11 +4395,13 @@ with demo:
|
|
| 4395 |
with gr.Row():
|
| 4396 |
with gr.Column(scale=5, min_width=200):
|
| 4397 |
input_gallery, submit_button, clear_images_button, dataset_dropdown, num_images_slider, random_seed_slider, load_images_button = make_input_images_section()
|
|
|
|
| 4398 |
num_images_slider.value = 30
|
| 4399 |
logging_text = gr.Textbox("Logging information", label="Logging", elem_id="logging", type="text", placeholder="Logging information", autofocus=False, autoscroll=False)
|
| 4400 |
|
| 4401 |
with gr.Column(scale=5, min_width=200):
|
| 4402 |
output_gallery = make_output_images_section()
|
|
|
|
| 4403 |
# cluster_gallery = gr.Gallery(value=[], label="Clusters", show_label=True, elem_id="clusters", columns=[2], rows=[2], object_fit="contain", height="auto", show_share_button=True, preview=False, interactive=False)
|
| 4404 |
[
|
| 4405 |
model_dropdown, layer_slider, node_type_dropdown, num_eig_slider,
|
|
@@ -4428,7 +4430,7 @@ with demo:
|
|
| 4428 |
outputs=[output_gallery, logging_text],
|
| 4429 |
)
|
| 4430 |
|
| 4431 |
-
with gr.Tab('
|
| 4432 |
with gr.Row():
|
| 4433 |
image_cluster_plot = gr.Image(value=None, label="Image-level clustering", elem_id="image_cluster_plot", interactive=False)
|
| 4434 |
with gr.Row():
|
|
@@ -4970,7 +4972,7 @@ with demo:
|
|
| 4970 |
|
| 4971 |
hidden_button.change(update_smile, [n_smiles], [n_smiles, hidden_button])
|
| 4972 |
hidden_tabs = [tab_alignedcut_advanced, tab_model_aligned_advanced, tab_recursivecut_advanced,
|
| 4973 |
-
tab_compare_models_advanced, tab_directed_ncut, tab_aligned, tab_lisa
|
| 4974 |
hidden_button.change(partial(unlock_tabs, n_tab=len(hidden_tabs)), [n_smiles], hidden_tabs)
|
| 4975 |
|
| 4976 |
with gr.Row():
|
|
|
|
| 4395 |
with gr.Row():
|
| 4396 |
with gr.Column(scale=5, min_width=200):
|
| 4397 |
input_gallery, submit_button, clear_images_button, dataset_dropdown, num_images_slider, random_seed_slider, load_images_button = make_input_images_section()
|
| 4398 |
+
add_download_button(input_gallery)
|
| 4399 |
num_images_slider.value = 30
|
| 4400 |
logging_text = gr.Textbox("Logging information", label="Logging", elem_id="logging", type="text", placeholder="Logging information", autofocus=False, autoscroll=False)
|
| 4401 |
|
| 4402 |
with gr.Column(scale=5, min_width=200):
|
| 4403 |
output_gallery = make_output_images_section()
|
| 4404 |
+
add_download_button(output_gallery)
|
| 4405 |
# cluster_gallery = gr.Gallery(value=[], label="Clusters", show_label=True, elem_id="clusters", columns=[2], rows=[2], object_fit="contain", height="auto", show_share_button=True, preview=False, interactive=False)
|
| 4406 |
[
|
| 4407 |
model_dropdown, layer_slider, node_type_dropdown, num_eig_slider,
|
|
|
|
| 4430 |
outputs=[output_gallery, logging_text],
|
| 4431 |
)
|
| 4432 |
|
| 4433 |
+
with gr.Tab('Re-color', visible=True) as sub_cluster_tab:
|
| 4434 |
with gr.Row():
|
| 4435 |
image_cluster_plot = gr.Image(value=None, label="Image-level clustering", elem_id="image_cluster_plot", interactive=False)
|
| 4436 |
with gr.Row():
|
|
|
|
| 4972 |
|
| 4973 |
hidden_button.change(update_smile, [n_smiles], [n_smiles, hidden_button])
|
| 4974 |
hidden_tabs = [tab_alignedcut_advanced, tab_model_aligned_advanced, tab_recursivecut_advanced,
|
| 4975 |
+
tab_compare_models_advanced, tab_directed_ncut, tab_aligned, tab_lisa]
|
| 4976 |
hidden_button.change(partial(unlock_tabs, n_tab=len(hidden_tabs)), [n_smiles], hidden_tabs)
|
| 4977 |
|
| 4978 |
with gr.Row():
|
requirements.txt
CHANGED
|
@@ -22,4 +22,4 @@ open-clip-torch==2.20.0
|
|
| 22 |
pytorch_lightning==1.9.4
|
| 23 |
gradio_image_prompter==0.1.0
|
| 24 |
scikit-image==0.24.0
|
| 25 |
-
ncut-pytorch>=1.8.
|
|
|
|
| 22 |
pytorch_lightning==1.9.4
|
| 23 |
gradio_image_prompter==0.1.0
|
| 24 |
scikit-image==0.24.0
|
| 25 |
+
ncut-pytorch>=1.8.8
|