Skip to content

Commit

Permalink
bug fix for numpy input
Browse files Browse the repository at this point in the history
  • Loading branch information
R1ckShi committed Feb 6, 2024
1 parent 78ee057 commit 410a854
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion funasr/models/campplus/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,5 +123,5 @@ def inference(self,
time3 = time.perf_counter()
meta_data["extract_feat"] = f"{time3 - time2:0.3f}"
meta_data["batch_data_time"] = np.array(speech_times).sum().item() / 16000.0
results = [{"spk_embedding": self.forward(speech)}]
results = [{"spk_embedding": self.forward(speech.to(torch.float32))}]
return results, meta_data

0 comments on commit 410a854

Please sign in to comment.