Spaces:
Runtime error
Runtime error
ercanburak
commited on
Commit
•
aa98a89
1
Parent(s):
89d61e6
do not download files, use locals
Browse files
app.py
CHANGED
@@ -5,7 +5,7 @@ import glob
|
|
5 |
import streamlit as st
|
6 |
|
7 |
from utils import get_configs, get_display_names, get_path_for_viz, get_video_height, get_text_str
|
8 |
-
from gdrive import download_file
|
9 |
|
10 |
# st.header("EVREAL - Event-based Video Reconstruction Evaluation and Analysis Library")
|
11 |
#
|
@@ -136,20 +136,20 @@ for row_idx in range(num_rows):
|
|
136 |
if cur_model['name'] == "gt":
|
137 |
if row_idx < len(gt_viz):
|
138 |
video_path = get_path_for_viz(selected_dataset, selected_sequence, cur_model, gt_viz[row_idx])
|
139 |
-
|
140 |
-
download_file(video_path, local_video_path)
|
141 |
-
if not os.path.isfile(
|
142 |
-
raise ValueError("
|
143 |
gt_viz_indices.append(vid_idx)
|
144 |
else:
|
145 |
continue
|
146 |
else:
|
147 |
if row_idx < len(model_viz):
|
148 |
video_path = get_path_for_viz(selected_dataset, selected_sequence, cur_model, model_viz[row_idx])
|
149 |
-
|
150 |
-
download_file(video_path, local_video_path)
|
151 |
-
if not os.path.isfile(
|
152 |
-
raise ValueError("
|
153 |
else:
|
154 |
continue
|
155 |
|
@@ -171,7 +171,7 @@ for row_idx in range(num_rows):
|
|
171 |
input_filter_parts.append(input_filter_part)
|
172 |
xstack_input_part = "[v{}]".format(vid_idx)
|
173 |
xstack_input_parts.append(xstack_input_part)
|
174 |
-
video_paths.append(
|
175 |
if row_idx == 0 or col_idx > 0:
|
176 |
layout_w_parts = [str(left_pad)] + ["w{}".format(i) for i in range(col_idx)]
|
177 |
layout_w = "+".join(layout_w_parts)
|
|
|
5 |
import streamlit as st
|
6 |
|
7 |
from utils import get_configs, get_display_names, get_path_for_viz, get_video_height, get_text_str
|
8 |
+
# from gdrive import download_file
|
9 |
|
10 |
# st.header("EVREAL - Event-based Video Reconstruction Evaluation and Analysis Library")
|
11 |
#
|
|
|
136 |
if cur_model['name'] == "gt":
|
137 |
if row_idx < len(gt_viz):
|
138 |
video_path = get_path_for_viz(selected_dataset, selected_sequence, cur_model, gt_viz[row_idx])
|
139 |
+
video_path = os.path.join("data", video_path)
|
140 |
+
# download_file(video_path, local_video_path)
|
141 |
+
if not os.path.isfile(video_path):
|
142 |
+
raise ValueError("Could not find video: " + video_path)
|
143 |
gt_viz_indices.append(vid_idx)
|
144 |
else:
|
145 |
continue
|
146 |
else:
|
147 |
if row_idx < len(model_viz):
|
148 |
video_path = get_path_for_viz(selected_dataset, selected_sequence, cur_model, model_viz[row_idx])
|
149 |
+
video_path = os.path.join("data", video_path)
|
150 |
+
# download_file(video_path, local_video_path)
|
151 |
+
if not os.path.isfile(video_path):
|
152 |
+
raise ValueError("Could not find video: " + video_path)
|
153 |
else:
|
154 |
continue
|
155 |
|
|
|
171 |
input_filter_parts.append(input_filter_part)
|
172 |
xstack_input_part = "[v{}]".format(vid_idx)
|
173 |
xstack_input_parts.append(xstack_input_part)
|
174 |
+
video_paths.append(video_path)
|
175 |
if row_idx == 0 or col_idx > 0:
|
176 |
layout_w_parts = [str(left_pad)] + ["w{}".format(i) for i in range(col_idx)]
|
177 |
layout_w = "+".join(layout_w_parts)
|