mirror of
https://github.com/modelscope/FunASR
synced 2025-09-15 14:48:36 +08:00
update
This commit is contained in:
parent
7c6ed3830a
commit
dd4946a50d
@ -237,7 +237,8 @@ def inference_modelscope(
|
||||
results = speech2diar(**batch)
|
||||
|
||||
# post process
|
||||
a = medfilt(results[0], (11, 1))
|
||||
a = results[0].cpu().numpy()
|
||||
a = medfilt(a, (11, 1))
|
||||
rst = []
|
||||
for spkid, frames in enumerate(a.T):
|
||||
frames = np.pad(frames, (1, 1), 'constant')
|
||||
|
||||
Loading…
Reference in New Issue
Block a user