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

Update module

Browse files
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -94,13 +94,12 @@ 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
- bg_frames = np.expand_dims(bg_frames, axis=0)
98
 
99
 
100
  # Combine into input dict (match what model.enhance expects)
101
  data = {
102
  "noisy_audio": noisy,
103
- "video_frames": bg_frames
104
  }
105
 
106
  with torch.no_grad():
 
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)
100
  data = {
101
  "noisy_audio": noisy,
102
+ "video_frames": bg_frames[np.newaxis, ...]
103
  }
104
 
105
  with torch.no_grad():