You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[src] Add binary for fbank feature extraction on GPU (#3921)
.. called cudafeatbin/compute-fbank-online-batched-cuda
Testing revealed a bug. If the output feature array is allocated
with kStrideEqualNumCols, then output features will have zero-
padding where they shouldn't. To fix this, we write Mel energies
directly into the output feature array for fbank features.
(If use_log is specified, this is applied during the MEL banks
computation kernel).
To run:
cd cudafeatbin
./compute-fbank-online-batched-cuda --config=<path to your fbank.conf> \
--batch-size=50 scp:<path to your wav.scp> \
ark,scp:feats-batch.ark,feats-batch.scp
To compare with CPU features:
pushd ../featbin/;make;popd
../featbin/compute-fbank-feats --config=<path to your fbank.conf> \
scp:<path to your wav.scp> ark,scp:feats-cpu.ark,feats-cpu.scp
../featbin/compare-feats ark:feats-batch.ark ark:feats-cpu.ark
You should see a line that says
`Features are considered similar since 0.999998 >= 0.99`
0 commit comments