Update app.py
Browse files
app.py
CHANGED
|
@@ -155,11 +155,12 @@ def make_video(video_path, outdir='./vis_video_depth', encoder='vits', blur_data
|
|
| 155 |
global comb_frames
|
| 156 |
global frames
|
| 157 |
global depths
|
|
|
|
| 158 |
count = 0
|
| 159 |
n = 0
|
| 160 |
-
|
| 161 |
-
|
| 162 |
-
|
| 163 |
comb_frames = []
|
| 164 |
thumbnail_old = []
|
| 165 |
|
|
@@ -229,7 +230,7 @@ def make_video(video_path, outdir='./vis_video_depth', encoder='vits', blur_data
|
|
| 229 |
frames.append(f"f{count}.png")
|
| 230 |
|
| 231 |
cv2.imwrite(f"f{count}_.png", blur_frame)
|
| 232 |
-
|
| 233 |
|
| 234 |
cv2.imwrite(f"f{count}_dmap.png", depth_color)
|
| 235 |
depths.append(f"f{count}_dmap.png")
|
|
@@ -261,9 +262,6 @@ def make_video(video_path, outdir='./vis_video_depth', encoder='vits', blur_data
|
|
| 261 |
cv2.destroyAllWindows()
|
| 262 |
|
| 263 |
global gradient
|
| 264 |
-
global frame_selected
|
| 265 |
-
global backups
|
| 266 |
-
backups = backup_frames
|
| 267 |
|
| 268 |
if depth_color.shape[0] == 2048: #height
|
| 269 |
gradient = cv2.imread('./gradient_large.png').astype(np.uint8)
|
|
|
|
| 155 |
global comb_frames
|
| 156 |
global frames
|
| 157 |
global depths
|
| 158 |
+
global backups
|
| 159 |
count = 0
|
| 160 |
n = 0
|
| 161 |
+
depths = []
|
| 162 |
+
frames = []
|
| 163 |
+
backups = []
|
| 164 |
comb_frames = []
|
| 165 |
thumbnail_old = []
|
| 166 |
|
|
|
|
| 230 |
frames.append(f"f{count}.png")
|
| 231 |
|
| 232 |
cv2.imwrite(f"f{count}_.png", blur_frame)
|
| 233 |
+
backups.append(f"f{count}_.png")
|
| 234 |
|
| 235 |
cv2.imwrite(f"f{count}_dmap.png", depth_color)
|
| 236 |
depths.append(f"f{count}_dmap.png")
|
|
|
|
| 262 |
cv2.destroyAllWindows()
|
| 263 |
|
| 264 |
global gradient
|
|
|
|
|
|
|
|
|
|
| 265 |
|
| 266 |
if depth_color.shape[0] == 2048: #height
|
| 267 |
gradient = cv2.imread('./gradient_large.png').astype(np.uint8)
|