Боб Калди Айвектор кортеж вне диапазона
Я пытаюсь обучить UBM распознаванию спикеров через фаната Боба для Kaldi. При передаче fubm в качестве параметра для iVEctor Training я сталкиваюсь с ошибкой ниже:
~ / miniconda3 / envs / bob_py3 / lib / python3.6 / site-packages / bob / kaldi / io.py в
IndexError Traceback (most recent call last)
<ipython-input-17-b9a9b37ef8f0> in <module>()
num_gselect=20, ivector_dim=600,
use_weights=False,
num_iters=5, min_post=0.025,
num_samples_for_weights=3, posterior_scale=1.0)
~/miniconda3/envs/bob_py3/lib/python3.6/site-
packages/bob/kaldi/ivector.py in ivector_train(feats, fubm,
ivector_extractor, num_gselect,
ivector_dim, use_weights,
num_iters,
min_post,
num_samples_for_weights,
posterior_scale)
for i, utt in enumerate(feats):
uttid = 'utt' + str(i)
io.write_mat(f, utt, key=uttid.encode('utf-8'))
# Initialize the i-vector extractor using the FGMM input
~/miniconda3/envs/bob_py3/lib/python3.6/site-packages/bob/kaldi/io.py
in write_mat(file_or_fd, m, key)
fd.write(struct.pack('I', m.shape[0])) # rows
fd.write(b'\04')
fd.write(struct.pack('I', m.shape[1])) # cols
# Data,
# m.tofile(fd, sep=b"") # binary
IndexError: tuple index out of range
Код Python:-
#bob kaldi MFCCs
filename = "/home/abishek/Downloads/basic-speaker-../wav/a0491.wav"
feats = bob.kaldi.mfcc_from_path(filename, channel=0)
# ubm train
ubmname = "/home/abishek/Downloads/iVector - Speaker Recog/ubm.model"
# bob.kaldi.ubm_train
dubm = bob.kaldi.ubm_train(feats, ubmname)
fubmfile = "/home/abishek/Downloads/../fubm.model"
# Full UBM train
fubm = bob.kaldi.ubm_full_train(feats, dubm, fubmfile)
#iVector Extractor
ivector_extractor = "/home/abishek/Downloads../iVecExt.model"
iVec_Model = bob.kaldi.ivector_train(feats, fubm, ivector_extractor)