Closed videodanchik closed 3 years ago
Hello, sorry for the delay. I am currently busy with a different project that is taking all my time. Thank you for the suggestions. I will take a look to your proposed changes and try them out later this year. I apologize for the delay again. I'll keep the issue open until then
Hi @videodanchik After checking I got the same results, I have accepted the pull request. For some reason, I needed to update the numpy version to import fastcluster successfully. Perhaps it is not strictly necessary (some problem on my environment) but it will not harm to have a newer numpy as requirement. Thanks a lot for the contribution! Federico
Hi guys I have a small update for your main VB_diarization function. This update almost fully removes your inner speaker loop and also speeds up things a little bit. I tried to make a pull request, but haven't found an opportunity to push new branch, anyway I suggest replacing the following lines:
with the following code:
as you can see I haven't implemented vectorized form for the last line in the speaker loop because this replacement requires additional modification of the
logdet
function. To make things work for multiple matricesspl.cholesky
should be replaced withnp.linalg.cholesky
and for some reason this slows down the processing speed (probably because numpy version involves some additional checks before doing Cholesky decomposition). Finallylls = np.zeros_like(gamma)
can be removed. What do you think about it?