RankFace icon indicating copy to clipboard operation
RankFace copied to clipboard

图片像素特征为什么要除以255呢?是归一化吗?ptrdict.py:42,49行

Open poryfly opened this issue 7 years ago • 1 comments

用已有的代码重新train模型,好像在那个地方像素特征都变为0了,即使我将255变成float,最终train出来都模型打分也不太对。

poryfly avatar Aug 13 '17 11:08 poryfly

追踪一下图片是否读取成功,这个可能是python2和python3对于浮点数不同的处理方式导致的。

Entropy-xcy avatar Aug 15 '17 10:08 Entropy-xcy