manojpamk/pytorch_xvectors

What's the shape of network's input

Closed this issue · 3 comments

output = net(X[preFetchBatchI*args.batchSize:(preFetchBatchI+1)*args.batchSize,:,:].permute(0,2,1), eps)

  1. what's the value of (batch_size, feat_dim, chunk_len) , (batch_size, 30, ?) ?
  2. Is MFCC of the feature in your experiment?
  3. Have you try other tools to extract features, such as librosa ...?
    Thanks!
  1. what's the value of (batch_size, feat_dim, chunk_len) , (batch_size, 30, ?) ?

I'm not sure if I understand the question. chunk_len is determined by kaldi when creating the archives. It represents the temporal dimension: number of MFCC frames in the utterance.

  1. Is MFCC of the feature in your experiment?

Yes, each input sample is a matrix - a sequence of MFCC features.

  1. Have you try other tools to extract features, such as librosa ...?

Not at the moment.

"loss in nan", how to solve this?

The most common reason (in this repo) was due to the stats pooling layer. If all inputs are zero or same, then var(0) seems to result in NaN loss.
Please use the -noiseEps to avoid this.