Spaces:
Runtime error
Runtime error
kevinwang676
commited on
Commit
•
bc20090
1
Parent(s):
ffb29ba
Update app.py
Browse files
app.py
CHANGED
@@ -126,7 +126,7 @@ def inference_video(video_path, prompt):
|
|
126 |
for i, file in enumerate(input_frames):
|
127 |
img = cv2.imread(os.path.join("demo_temp/input_frames", file))
|
128 |
#vis = img + np.array([0, 0, 128]) * output[i][1].transpose(1, 2, 0)
|
129 |
-
vis = output[i][1].transpose(1,2,0) * 255
|
130 |
vis = np.clip(vis, 0, 255)
|
131 |
vis = np.uint8(vis)
|
132 |
video_writer.write(vis)
|
|
|
126 |
for i, file in enumerate(input_frames):
|
127 |
img = cv2.imread(os.path.join("demo_temp/input_frames", file))
|
128 |
#vis = img + np.array([0, 0, 128]) * output[i][1].transpose(1, 2, 0)
|
129 |
+
vis = img + output[i][1].transpose(1,2,0) * 255
|
130 |
vis = np.clip(vis, 0, 255)
|
131 |
vis = np.uint8(vis)
|
132 |
video_writer.write(vis)
|