annading commited on
Commit
f000dbd
1 Parent(s): 2d52f0e

allow input vids with spaces

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -20,7 +20,9 @@ def run_sam_dino(input_vid,
20
  text_threshold,
21
  fps_processed,
22
  video_options):
23
- csv_path, vid_path = sam_dino_vid(input_vid, grounding_caption, box_threshold, text_threshold, fps_processed, video_options)
 
 
24
  global CSV_PATH
25
  CSV_PATH = csv_path
26
  global VID_PATH
 
20
  text_threshold,
21
  fps_processed,
22
  video_options):
23
+ new_input_vid = input_vid.replace(" ", "_")
24
+ os.rename(input_vid, new_input_vid)
25
+ csv_path, vid_path = sam_dino_vid(new_input_vid, grounding_caption, box_threshold, text_threshold, fps_processed, video_options)
26
  global CSV_PATH
27
  CSV_PATH = csv_path
28
  global VID_PATH