ercanburak commited on
Commit
99fd4f2
1 Parent(s): eda303f

remove unused

Browse files
Files changed (1) hide show
  1. app.py +0 -10
app.py CHANGED
@@ -1,6 +1,5 @@
1
  import os
2
  import subprocess
3
- import glob
4
 
5
  import streamlit as st
6
 
@@ -43,8 +42,6 @@ def retrieve_results(selected_dataset, selected_sequence, selected_models, selec
43
  num_gt_rows = len(gt_viz)
44
  num_rows = max(num_model_rows, num_gt_rows)
45
 
46
- # total_videos_needed = len(selected_models) * num_model_rows + num_gt_rows
47
-
48
  if len(gt_viz) > 0:
49
  selected_models.append(ground_truth)
50
 
@@ -53,12 +50,6 @@ def retrieve_results(selected_dataset, selected_sequence, selected_models, selec
53
  num_cols = len(selected_models)
54
  crop_str = "crop=trunc(iw/2)*2-2:trunc(ih/2)*2,"
55
  pad_str = "pad=ceil(iw/2)*2+{}:ceil(ih/2)*2+{}:{}:{}:white".format(padding*2, padding*2, padding, padding)
56
- num_elements = num_rows * num_cols
57
-
58
- # remove previous temp data
59
- files = glob.glob('temp_data/temp_*.mp4')
60
- for f in files:
61
- os.remove(f)
62
 
63
  w = selected_dataset["width"]
64
  h = selected_dataset["height"]
@@ -75,7 +66,6 @@ def retrieve_results(selected_dataset, selected_sequence, selected_models, selec
75
  for row_idx in range(num_rows):
76
  for col_idx in range(num_cols):
77
  vid_idx = len(video_paths)
78
- # progress_bar.progress(float(vid_idx) / total_videos_needed)
79
  cur_model = selected_models[col_idx]
80
  if cur_model['name'] == "gt":
81
  if row_idx < len(gt_viz):
 
1
  import os
2
  import subprocess
 
3
 
4
  import streamlit as st
5
 
 
42
  num_gt_rows = len(gt_viz)
43
  num_rows = max(num_model_rows, num_gt_rows)
44
 
 
 
45
  if len(gt_viz) > 0:
46
  selected_models.append(ground_truth)
47
 
 
50
  num_cols = len(selected_models)
51
  crop_str = "crop=trunc(iw/2)*2-2:trunc(ih/2)*2,"
52
  pad_str = "pad=ceil(iw/2)*2+{}:ceil(ih/2)*2+{}:{}:{}:white".format(padding*2, padding*2, padding, padding)
 
 
 
 
 
 
53
 
54
  w = selected_dataset["width"]
55
  h = selected_dataset["height"]
 
66
  for row_idx in range(num_rows):
67
  for col_idx in range(num_cols):
68
  vid_idx = len(video_paths)
 
69
  cur_model = selected_models[col_idx]
70
  if cur_model['name'] == "gt":
71
  if row_idx < len(gt_viz):