AndreasXi commited on
Commit
9e01b09
·
1 Parent(s): 95a3eb0

update batch infer

Browse files
Files changed (1) hide show
  1. modeling_finelap.py +1 -1
modeling_finelap.py CHANGED
@@ -154,7 +154,7 @@ class FineLAPModel(PreTrainedModel):
154
  import matplotlib.pyplot as plt
155
  import numpy as np
156
 
157
- scores = self.get_frame_level_score(audio_path, text_labels, device)
158
  sim_matrix_np = scores.cpu().numpy()
159
 
160
  fig, ax = plt.subplots(figsize=(14, 8))
 
154
  import matplotlib.pyplot as plt
155
  import numpy as np
156
 
157
+ scores = self.get_frame_level_score(audio_path, text_labels, device).squeeze()
158
  sim_matrix_np = scores.cpu().numpy()
159
 
160
  fig, ax = plt.subplots(figsize=(14, 8))