changed the way scaling factor is represented
Browse files
app.py
CHANGED
@@ -33,7 +33,7 @@ def run_sam_dino(input_vid,
|
|
33 |
box_threshold=box_threshold,
|
34 |
text_threshold=text_threshold,
|
35 |
fps_processed=fps_processed,
|
36 |
-
scaling_factor=scaling_factor,
|
37 |
video_options=video_options,
|
38 |
batch_size=BATCH_SIZE)
|
39 |
global CSV_PATH
|
@@ -81,11 +81,11 @@ with gr.Blocks() as demo:
|
|
81 |
step=1)
|
82 |
scaling_factor = gr.Slider(
|
83 |
label="Downsample Factor",
|
84 |
-
info="Adjust the downsample factor.
|
85 |
-
minimum=
|
86 |
-
maximum=
|
87 |
-
value=
|
88 |
-
step=
|
89 |
)
|
90 |
video_options = gr.CheckboxGroup(choices=["Bounding boxes", "Masks"],
|
91 |
label="Video Output Options",
|
|
|
33 |
box_threshold=box_threshold,
|
34 |
text_threshold=text_threshold,
|
35 |
fps_processed=fps_processed,
|
36 |
+
scaling_factor=(1/scaling_factor), # size gets multplied by this so we need to invert it
|
37 |
video_options=video_options,
|
38 |
batch_size=BATCH_SIZE)
|
39 |
global CSV_PATH
|
|
|
81 |
step=1)
|
82 |
scaling_factor = gr.Slider(
|
83 |
label="Downsample Factor",
|
84 |
+
info="Adjust the downsample factor. Note: the higher the number the faster the processing time but lower the accuracy.",
|
85 |
+
minimum=1,
|
86 |
+
maximum=5,
|
87 |
+
value=2,
|
88 |
+
step=1
|
89 |
)
|
90 |
video_options = gr.CheckboxGroup(choices=["Bounding boxes", "Masks"],
|
91 |
label="Video Output Options",
|