Spaces:
Running
on
Zero
Running
on
Zero
update rbf
Browse files- app.py +2 -2
- requirements.txt +1 -1
app.py
CHANGED
@@ -1755,14 +1755,14 @@ def make_input_images_section(rows=1, cols=3, height="auto", advanced=False, is_
|
|
1755 |
num_images_slider = gr.Slider(1, 1000, step=1, label="Number of images", value=10, elem_id="num_images", min_width=200)
|
1756 |
if not is_random:
|
1757 |
filter_by_class_checkbox = gr.Checkbox(label="Filter by class", value=True, elem_id="filter_by_class_checkbox")
|
1758 |
-
filter_by_class_text = gr.Textbox(label="Class to select", value="0
|
1759 |
# is_random_checkbox = gr.Checkbox(label="Random shuffle", value=False, elem_id="random_seed_checkbox")
|
1760 |
# random_seed_slider = gr.Slider(0, 1000, step=1, label="Random seed", value=1, elem_id="random_seed", visible=False)
|
1761 |
is_random_checkbox = gr.Checkbox(label="Random shuffle", value=True, elem_id="random_seed_checkbox")
|
1762 |
random_seed_slider = gr.Slider(0, 1000, step=1, label="Random seed", value=1, elem_id="random_seed", visible=True)
|
1763 |
if is_random:
|
1764 |
filter_by_class_checkbox = gr.Checkbox(label="Filter by class", value=False, elem_id="filter_by_class_checkbox")
|
1765 |
-
filter_by_class_text = gr.Textbox(label="Class to select", value="0
|
1766 |
is_random_checkbox = gr.Checkbox(label="Random shuffle", value=True, elem_id="random_seed_checkbox")
|
1767 |
random_seed_slider = gr.Slider(0, 1000, step=1, label="Random seed", value=42, elem_id="random_seed", visible=True)
|
1768 |
|
|
|
1755 |
num_images_slider = gr.Slider(1, 1000, step=1, label="Number of images", value=10, elem_id="num_images", min_width=200)
|
1756 |
if not is_random:
|
1757 |
filter_by_class_checkbox = gr.Checkbox(label="Filter by class", value=True, elem_id="filter_by_class_checkbox")
|
1758 |
+
filter_by_class_text = gr.Textbox(label="Class to select", value="97,0", elem_id="filter_by_class_text", info=f"e.g. `0,1,2`. (1000 classes)", visible=True)
|
1759 |
# is_random_checkbox = gr.Checkbox(label="Random shuffle", value=False, elem_id="random_seed_checkbox")
|
1760 |
# random_seed_slider = gr.Slider(0, 1000, step=1, label="Random seed", value=1, elem_id="random_seed", visible=False)
|
1761 |
is_random_checkbox = gr.Checkbox(label="Random shuffle", value=True, elem_id="random_seed_checkbox")
|
1762 |
random_seed_slider = gr.Slider(0, 1000, step=1, label="Random seed", value=1, elem_id="random_seed", visible=True)
|
1763 |
if is_random:
|
1764 |
filter_by_class_checkbox = gr.Checkbox(label="Filter by class", value=False, elem_id="filter_by_class_checkbox")
|
1765 |
+
filter_by_class_text = gr.Textbox(label="Class to select", value="97,0", elem_id="filter_by_class_text", info=f"e.g. `0,1,2`. (1000 classes)", visible=False)
|
1766 |
is_random_checkbox = gr.Checkbox(label="Random shuffle", value=True, elem_id="random_seed_checkbox")
|
1767 |
random_seed_slider = gr.Slider(0, 1000, step=1, label="Random seed", value=42, elem_id="random_seed", visible=True)
|
1768 |
|
requirements.txt
CHANGED
@@ -21,4 +21,4 @@ timm==0.9.2
|
|
21 |
open-clip-torch==2.20.0
|
22 |
pytorch_lightning==1.9.4
|
23 |
gradio_image_prompter==0.1.0
|
24 |
-
ncut-pytorch>=1.5
|
|
|
21 |
open-clip-torch==2.20.0
|
22 |
pytorch_lightning==1.9.4
|
23 |
gradio_image_prompter==0.1.0
|
24 |
+
ncut-pytorch>=1.6.5
|