roychao19477 commited on
Commit
c0377a7
·
1 Parent(s): 13db68c

Update module

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -94,6 +94,7 @@ def run_avse_inference(video_path, audio_path):
94
  cv2.cvtColor(frames[i], cv2.COLOR_RGB2GRAY) for i in range(len(frames))
95
  ]).astype(np.float32)
96
  bg_frames /= 255.0
 
97
 
98
 
99
  # Combine into input dict (match what model.enhance expects)
 
94
  cv2.cvtColor(frames[i], cv2.COLOR_RGB2GRAY) for i in range(len(frames))
95
  ]).astype(np.float32)
96
  bg_frames /= 255.0
97
+ bg_frames = np.expand_dims(bg_frames, axis=0)
98
 
99
 
100
  # Combine into input dict (match what model.enhance expects)