Spaces:
Sleeping
Sleeping
fix tabs
Browse files- app.py +4 -7
- images/ncut_0.jpg +0 -0
- images/ncut_0_independent.jpg +0 -0
- images/ncut_1.jpg +0 -0
- images/ncut_1_independent.jpg +0 -0
- images/ncut_2.jpg +0 -0
- images/ncut_2_independent.jpg +0 -0
- images/ncut_3.jpg +0 -0
- images/ncut_3_independent.jpg +0 -0
- images/ncut_5.jpg +0 -0
- images/ncut_5_independent.jpg +0 -0
app.py
CHANGED
@@ -379,6 +379,8 @@ def run_fn(
|
|
379 |
return super_duper_long_run(images, **kwargs)
|
380 |
if num_images > 50:
|
381 |
return longer_run(images, **kwargs)
|
|
|
|
|
382 |
if num_images > 10:
|
383 |
return long_run(images, **kwargs)
|
384 |
if embedding_method == "UMAP":
|
@@ -526,13 +528,8 @@ with gr.Blocks() as demo:
|
|
526 |
gr.Markdown('#### Ncut, not aligned, no Nyström approximation')
|
527 |
gr.Markdown('Each image is solved independently, _color is not aligned across images_')
|
528 |
|
529 |
-
|
530 |
-
|
531 |
-
gr.Markdown('')
|
532 |
-
with gr.Column(scale=5, min_width=200):
|
533 |
-
gr.Markdown('### NCut vs. AlignedCut')
|
534 |
-
with gr.Column(scale=2, min_width=200):
|
535 |
-
gr.Markdown('')
|
536 |
with gr.Row():
|
537 |
with gr.Column(scale=5, min_width=200):
|
538 |
gr.Markdown('#### Pros')
|
|
|
379 |
return super_duper_long_run(images, **kwargs)
|
380 |
if num_images > 50:
|
381 |
return longer_run(images, **kwargs)
|
382 |
+
if old_school_ncut:
|
383 |
+
return longer_run(images, **kwargs)
|
384 |
if num_images > 10:
|
385 |
return long_run(images, **kwargs)
|
386 |
if embedding_method == "UMAP":
|
|
|
528 |
gr.Markdown('#### Ncut, not aligned, no Nyström approximation')
|
529 |
gr.Markdown('Each image is solved independently, _color is not aligned across images_')
|
530 |
|
531 |
+
gr.Markdown('---')
|
532 |
+
gr.Markdown('<p style="text-align: center;"><b>NCut vs. AlignedCut</b></p>')
|
|
|
|
|
|
|
|
|
|
|
533 |
with gr.Row():
|
534 |
with gr.Column(scale=5, min_width=200):
|
535 |
gr.Markdown('#### Pros')
|
images/ncut_0.jpg
CHANGED
![]() |
![]() |
images/ncut_0_independent.jpg
ADDED
![]() |
images/ncut_1.jpg
CHANGED
![]() |
![]() |
images/ncut_1_independent.jpg
ADDED
![]() |
images/ncut_2.jpg
CHANGED
![]() |
![]() |
images/ncut_2_independent.jpg
ADDED
![]() |
images/ncut_3.jpg
CHANGED
![]() |
![]() |
images/ncut_3_independent.jpg
ADDED
![]() |
images/ncut_5.jpg
CHANGED
![]() |
![]() |
images/ncut_5_independent.jpg
ADDED
![]() |