Open javierrodenas opened 5 years ago
mybe, you can try it on linux
First, I believe that the features_server
is empty and didn't load any features. Why is that? The most probable cause is the location containing the features. To make sure everything as expected, do the following:
conf.yaml
and tell me the values of these YAML objects outpath
and sampling_rate
.outpath
and you should find at least the following folders audio
, feat
, and task
.{outpath}/feat
, you should find two folders at least enroll
and test
. I need to know how many files inside each.ubm.EM_split()
in ubm.py
.FeatureServer
inside ubm.py
. I'm expecting something like this server = self.createFeatureServer("enroll")
... is it right?@Anwarvic first of all, thanks for your answer.
Answering your questions:
[x] As outpath I have _./SpeakerRecognition/Speaker-Recognition/Merged_Arabic_Corpus_of_IsolatedWords/ and as sample_rate I have 44100 (default value).
[x] On the other hand, I find audio, feat and task folders in outpath but inside feat folder I can only see enroll folder but no test folder. Inside the enroll folder there are 6 files:
enroll_idmap.h5
plda_idmap.h5
test_idmap.h5
test_ndx.h5
test_trials.txt
tv_idmap.h5
[x] Also, ubm.EM_split() has the deault structure:
ubm.EM_split(
features_server=server, #sidekit.FeaturesServer used to load data
feature_list=train_list, #list of feature files to train the model
distrib_nb=self.NUM_GAUSSIANS, #number of Gaussian distributions
num_thread=self.NUM_THREADS, # number of parallel processes
save_partial=False, # if False, it only saves the last model
iterations=(1, 2, 2, 4, 4, 4, 4, 8, 8, 8, 8, 8, 8)
)
if __name__ == "__main__":
conf_filename = "conf.yaml"
ubm = UBM(conf_filename)
ubm.train()
ubm.evaluate()
ubm.plotDETcurve()
print( "Accuracy: {}%".format(ubm.getAccuracy()) )
On the other hand, inside the folder of audio I can find data, enroll and test folders but are empty. Beside this, task folder has the same 6 files as feat/enroll.
Thank you in advance.
Now, the problem is that you haven't extracted the features from the data yet. So, follow these steps:
data_init.py
. After running it, you will find two folders has been created at {outpath}
. these two files are:
{outpath}\audio
: which will contain two folders at least... enroll
and test
. Inside each folder you will find audio files that you can listen to.{outpath}\task
: which will contain these five files that you have mentioned above.extract_features.py
script which will create another directory in the {outpath}
called feat
. Inside this folder you should find two other folders at least. They are enroll
and test
.ubm.py
with no problem.If you need more information, please check this README.md file as I explained as many details as I could.
Hi, maybe it's too late but I believe that you forgot to install sox so the convert_wav() did not work as expected.
Hi!!! I have the following error training the model :
I have done the data_init first and it was well created. Then I ran extrac_feature and finally, ubm train. How can I solve that? Thank you in advance!!