idiap / kaldi-ivector

Extension to Kaldi implementing the standard i-vector hyperparameter estimation and i-vector extraction procedure
Other
87 stars 25 forks source link

include complete scripts ? #3

Open yongxuUSTC opened 7 years ago

yongxuUSTC commented 7 years ago

great work for SID!

Based on my understanding, i should copy some scripts from original kaldi/egs/sre08/utils into the current utils fold. Am i right? I think it is better to include all needed scripts here for newbies.

Could you help me to look at this error ?

gmm-global-init-from-feats --num-threads=32 --num-frames=50000 --min-gaussian-weight=0.0001 --num-gauss=2048 --num-gauss-init=1024 --num-iters=20 'ark,s,cs:add-deltas scp:data/asc16_train/feats.scp ark:- | apply-cmvn-sliding --norm-vars=false --center=true --cmn-window=300 ark:- ark:- | select-voiced-frames ark:- scp,s,cs:data/asc16_train/vad.scp ark:- |' exp/diag_ubm_2048/0.dubm select-voiced-frames ark:- scp,s,cs:data/asc16_train/vad.scp ark:- add-deltas scp:data/asc16_train/feats.scp ark:- apply-cmvn-sliding --norm-vars=false --center=true --cmn-window=300 ark:- ark:- WARNING (select-voiced-frames[5.1.100~1-d6cf1]:Open():util/kaldi-table-inl.h:1650) Script file data/asc16_train/vad.scp is not sorted (remove s, option or add ns, option): key is p8ID_3_a107_240_270 ERROR (select-voiced-frames[5.1.100~1-d6cf1]:RandomAccessTableReader():util/kaldi-table-inl.h:2528) Error opening RandomAccessTableReader object (rspecifier is: scp,s,cs:data/asc16_train/vad.scp)

If i remove s option or add ns, option, it works at this step. But later it has other errors.

mrsrikanth commented 7 years ago

Hello,

Apologies for the late response.

I think whatever scripts are required from utils/ are already included. Let me know if something was missing.

This may have to do with the way Kaldi expects the entires of the scp file to be when you include the "s" and "cs" flags. If the scp files are not sorted it is better to remove them and simply have

scp:PATH/TO/vad.scp

I hope this fixes your error. In principles, if your file lists worked on the original Kaldi scripts, it should work with these scripts as well.

Thank you, Srikanth