Spaces:
Running
on
Zero
Running
on
Zero
zoom in
Browse files
app.py
CHANGED
|
@@ -4248,6 +4248,8 @@ with demo:
|
|
| 4248 |
|
| 4249 |
|
| 4250 |
with gr.Tab('Sub-cluster (dev)', visible=False) as sub_cluster_tab:
|
|
|
|
|
|
|
| 4251 |
with gr.Row():
|
| 4252 |
with gr.Column(scale=5, min_width=200):
|
| 4253 |
input_gallery, submit_button, clear_images_button, dataset_dropdown, num_images_slider, random_seed_slider, load_images_button = make_input_images_section()
|
|
@@ -4269,8 +4271,6 @@ with demo:
|
|
| 4269 |
sampling_method_dropdown, ncut_metric_dropdown, positive_prompt, negative_prompt
|
| 4270 |
] = make_parameters_section()
|
| 4271 |
|
| 4272 |
-
with gr.Row():
|
| 4273 |
-
image_cluster_plot = gr.Image(value=None, label="Image-level clustering", elem_id="image_cluster_plot", interactive=False)
|
| 4274 |
|
| 4275 |
false_placeholder = gr.Checkbox(label="False", value=False, elem_id="false_placeholder", visible=False)
|
| 4276 |
no_prompt = gr.Textbox("", label="", elem_id="empty_placeholder", type="text", placeholder="", visible=False)
|
|
@@ -4362,7 +4362,7 @@ with demo:
|
|
| 4362 |
for i, (x, y) in enumerate(tsne_2d):
|
| 4363 |
img = padded_images[i]
|
| 4364 |
img = np.array(img)
|
| 4365 |
-
imgbox = OffsetImage(img, zoom=0.
|
| 4366 |
ab = AnnotationBbox(imgbox, (x, y), frameon=False)
|
| 4367 |
ax.add_artist(ab)
|
| 4368 |
|
|
|
|
| 4248 |
|
| 4249 |
|
| 4250 |
with gr.Tab('Sub-cluster (dev)', visible=False) as sub_cluster_tab:
|
| 4251 |
+
with gr.Row():
|
| 4252 |
+
image_cluster_plot = gr.Image(value=None, label="Image-level clustering", elem_id="image_cluster_plot", interactive=False)
|
| 4253 |
with gr.Row():
|
| 4254 |
with gr.Column(scale=5, min_width=200):
|
| 4255 |
input_gallery, submit_button, clear_images_button, dataset_dropdown, num_images_slider, random_seed_slider, load_images_button = make_input_images_section()
|
|
|
|
| 4271 |
sampling_method_dropdown, ncut_metric_dropdown, positive_prompt, negative_prompt
|
| 4272 |
] = make_parameters_section()
|
| 4273 |
|
|
|
|
|
|
|
| 4274 |
|
| 4275 |
false_placeholder = gr.Checkbox(label="False", value=False, elem_id="false_placeholder", visible=False)
|
| 4276 |
no_prompt = gr.Textbox("", label="", elem_id="empty_placeholder", type="text", placeholder="", visible=False)
|
|
|
|
| 4362 |
for i, (x, y) in enumerate(tsne_2d):
|
| 4363 |
img = padded_images[i]
|
| 4364 |
img = np.array(img)
|
| 4365 |
+
imgbox = OffsetImage(img, zoom=0.2)
|
| 4366 |
ab = AnnotationBbox(imgbox, (x, y), frameon=False)
|
| 4367 |
ax.add_artist(ab)
|
| 4368 |
|