WeidiXie / VGG-Speaker-Recognition

Utterance-level Aggregation For Speaker Recognition In The Wild
362 stars 98 forks source link

RuntimeWarning: divide by zero encountered in true_divide #30

Closed Honghe closed 5 years ago

Honghe commented 5 years ago

Environment:

Before test, I truncated the voxceleb1_veri_test.txt to only 50 lines to speed up test.

Command:

python predict.py --gpu 0 --net resnet34s --ghost_cluster 2 --vlad_cluster 8 --loss softmax --resume ../model/gvlad_softmax/resnet34_vlad8_ghost2_bdim512_deploy/weights.h5

output:

Instructions for updating:
Colocations handled automatically by placer.
==> successfully loading model ../model/gvlad_softmax/resnet34_vlad8_ghost2_bdim512_deploy/weights.h5.
==> start testing.
Finish extracting features for 0/100th wav.
2019-05-29 17:26:34.142088: I tensorflow/stream_executor/dso_loader.cc:152] successfully opened CUDA library libcublas.so.10.0 locally
Finish extracting features for 50/100th wav.
scores : 0.848808407784, gt : 1
scores : 0.635771036148, gt : 0
scores : 0.896652877331, gt : 1
scores : 0.666865587234, gt : 0
scores : 0.86113858223, gt : 1
scores : 0.649969100952, gt : 0
scores : 0.882004976273, gt : 1
scores : 0.675234436989, gt : 0
scores : 0.814641714096, gt : 1
scores : 0.612952053547, gt : 0
scores : 0.841726779938, gt : 1
scores : 0.691002070904, gt : 0
scores : 0.875537037849, gt : 1
scores : 0.760980308056, gt : 0
scores : 0.862766265869, gt : 1
scores : 0.595528423786, gt : 0
scores : 0.872184753418, gt : 1
scores : 0.580520808697, gt : 0
scores : 0.866317629814, gt : 1
scores : 0.861166357994, gt : 1
scores : 0.735198259354, gt : 0
scores : 0.846519947052, gt : 1
scores : 0.634202837944, gt : 0
scores : 0.879867553711, gt : 1
scores : 0.617964744568, gt : 0
scores : 0.866540849209, gt : 1
scores : 0.502503097057, gt : 0
scores : 0.884967088699, gt : 1
scores : 0.568573653698, gt : 0
scores : 0.926931381226, gt : 1
scores : 0.637345910072, gt : 0
scores : 0.834380090237, gt : 1
scores : 0.620291650295, gt : 0
scores : 0.912857890129, gt : 1
scores : 0.626294493675, gt : 0
scores : 0.952058196068, gt : 1
scores : 0.640718281269, gt : 0
scores : 0.933943748474, gt : 1
scores : 0.51838862896, gt : 0
scores : 0.861519873142, gt : 1
scores : 0.771008253098, gt : 0
scores : 0.881197452545, gt : 1
scores : 0.641325950623, gt : 0
scores : 0.885362446308, gt : 1
scores : 0.748977065086, gt : 0
scores : 0.839608311653, gt : 1
scores : 0.611160635948, gt : 0
/home/ubuntu/anaconda3/envs/python27/lib/python2.7/site-packages/scipy/interpolate/interpolate.py:610: RuntimeWarning: divide by zero encountered in true_divide
slope = (y_hi - y_lo) / (x_hi - x_lo)[:, None]
/home/ubuntu/anaconda3/envs/python27/lib/python2.7/site-packages/scipy/interpolate/interpolate.py:613: RuntimeWarning: invalid value encountered in multiply
y_new = slope*(x_new - x_lo)[:, None] + y_lo
==> model : ../model/gvlad_softmax/resnet34_vlad8_ghost2_bdim512_deploy/weights.h5, EER: 0.0
WeidiXie commented 5 years ago

can you predict the whole list ?

Honghe commented 5 years ago

I haven't test all the whole list ;D

WeidiXie commented 5 years ago

I know, but please do that. Also, please read how EER/ROC is computed, then you will know why it's dividing by 0.