Insightface-tensorflow icon indicating copy to clipboard operation
Insightface-tensorflow copied to clipboard

大佬,怎么感觉gen_tfrecord_mxdata.py运行不通啊

Open zemelLeong opened this issue 6 years ago • 2 comments

s = imgrec.read_idx(0) 报错:mxnet.base.MXNetError: [15:19:57] C:\Jenkins\workspace\mxnet-tag\mxnet\3rdparty\dmlc-core\src\recordio.cc:65: Check failed: header[0] == RecordIOWriter::kMagic: Invalid RecordIO File
如果把0改为1的话就正常
imgidx = list(range(1, int(header.label[0])))
报错:TypeError: 'float' object is not subscriptable
header.label得到的是一个浮点数

zemelLeong avatar Sep 20 '19 07:09 zemelLeong

我这里运行是没有问题的呀 你可以去下面的链接去看看,这块代码我是参考的这个链接 https://github.com/luckycallor/InsightFace-tensorflow

friedhelm739 avatar Sep 21 '19 04:09 friedhelm739

我稍微改了下代码能运行了
我配置比较低,跑了一天了loss 在17左右,在训练集上的精度在0到0.6之间
我使用的batch_size为10,次数达到了374000 请问你当时跑了多久啊?loss到多低才可用呢

zemelLeong avatar Sep 21 '19 09:09 zemelLeong