-
Notifications
You must be signed in to change notification settings - Fork 35
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Reading models #48
Comments
Sorry, basically, this tool is aimed at just loading matrix binary files. Actually, ivector-model is not implemented in python, then, what do you mean loading model file? |
Thanks for your reply, @kamo-naoyuki . Yes, I meant loading them into a numpy, I intend to use the models generated for a specific experiment in computational paralinguistics. Now I understand kaldiio is not supporting this. |
How about pykaldi?https://pykaldi.github.io/api/kaldi.ivector.html#kaldi.ivector.IvectorExtractor Direct way is also not hard. If you don't need the python API to read the model, how about directly using kaldi library in c++ and write parameters to your desired format? It's also not hard to translate this code to python, if you are familiar to both language. |
Sorry, I mistakenly pointed, here is ivector-extractor read: https://github.com/kaldi-asr/kaldi/blob/a2573871ba185b8fd83ec5e66270a9a2301e4300/src/ivector/ivector-extractor.cc#L828-L849 |
Thank you so much, @kamo-naoyuki. I will try this out and see. :) |
Hi, this is one of the best tools for reading ark and scp files! However, wanted to know how can one read models generated by kaldi, e.g. fullUBM models or ivector extractor models, which are usually generated by kaldi with 'ubm' extensions. For example: final.ubm, or final.dubm.
The text was updated successfully, but these errors were encountered: