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
The Python Code is shown below:
# Python bob.kaldi iVector
import os
import numpy as np
import glob
import io
from subprocess import PIPE, Popen
from os.path import isfile
import tempfile
import logging
logger = logging.getLogger(__name__)
import bob
from bob.kaldi.ivector import ivector_train
from bob.kaldi.ivector import ivector_extract
#bob kaldi MFCCs
filename = "/home/abishek/Downloads/basic-speaker-impl/development_set/anthonyschaller-20071221-/wav/a0491.wav"
feats = bob.kaldi.mfcc_from_path(filename, channel=0, preemphasis_coefficient=0.97,
raw_energy=True, frame_length=25, frame_shift=10,
num_ceps=13, num_mel_bins=23, cepstral_lifter=22,
low_freq=20, high_freq=0, dither=1.0, snip_edges=True)
# ubm train
ubmname = "/home/abishek/Downloads/iVector - Speaker Recog/ubm.model"
# bob.kaldi.ubm_train
dubm = bob.kaldi.ubm_train(feats, ubmname, num_threads=4, num_frames=200, min_gaussian_weight=0.0001,
num_gauss=32, num_gauss_init=0, num_gselect=30, num_iters_init=20, num_iters=4,
remove_low_count_gaussians=True)
fubmfile = "/home/abishek/Downloads/iVector - Speaker Recog/fubm.model"
# Diagonal UBM
fubm = bob.kaldi.ubm_full_train(feats, dubm, fubmfile,
num_gselect=20, num_iters=4,
min_gaussian_weight=0.0001)
#iVector Train
ivector_extractor = "/home/abishek/Downloads/iVector - Speaker Recog/iVecExt.model"
iVec_Model = bob.kaldi.ivector_train(feats, fubm, ivector_extractor, 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)
Alright, I hope that my former colleagues from Idiap (who have implemented the bob.kaldi interface) now can help you better. I have absolutely no experience with bob.kaldi, so I cannot help you with this.Manuel
--
-- You received this message because you are subscribed to the Google Groups bob-devel group. To post to this group, send email to bob-...@googlegroups.com. To unsubscribe from this group, send email to bob-devel+...@googlegroups.com. For more options, visit this group at https://groups.google.com/d/forum/bob-devel or directly the project website at http://idiap.github.com/bob/
---
You received this message because you are subscribed to the Google Groups "bob-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bob-devel+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
bob.bio.gmm.algorithm.
IVector
train_projector
(train_features, projector_file) function seems to be inconsistent with the kind of numpy array being used forbob.bio.gmm.algorithm.
GMM
and bob.bio.gmm.algorithm.
IVector
bob.bio.gmm.algorithm.
GMM
it accepts a 3-D numpy array and for
bob.bio.gmm.algorithm.
IVector
does not seem to work at all.
--
-- You received this message because you are subscribed to the Google Groups bob-devel group. To post to this group, send email to bob-...@googlegroups.com. To unsubscribe from this group, send email to bob-devel+unsubscribe@googlegroups.com. For more options, visit this group at https://groups.google.com/d/forum/bob-devel or directly the project website at http://idiap.github.com/bob/
---
You received this message because you are subscribed to the Google Groups "bob-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bob-devel+unsubscribe@googlegroups.com.
--
-- You received this message because you are subscribed to the Google Groups bob-devel group. To post to this group, send email to bob-...@googlegroups.com. To unsubscribe from this group, send email to bob-devel+...@googlegroups.com. For more options, visit this group at https://groups.google.com/d/forum/bob-devel or directly the project website at http://idiap.github.com/bob/
---
You received this message because you are subscribed to the Google Groups "bob-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bob-devel+...@googlegroups.com.
--Tiago