【发布时间】:2019-09-23 23:07:04
【问题描述】:
我使用ImagedataGenerator 和flow from directory 为任务训练CNN 模型并保存到.h5 文件中。预测时显示的是 logits 或一组数字,而不是标签。
我需要在预测时显示标签。
我尝试的一种可能方法是将每个 logit 的值重新分配给所需的标签或字符串,但我认为这可能是一项乏味的任务
我得到了什么:
[[1 0 0]]
我需要什么: “史蒂夫·罗杰斯”
【问题讨论】:
-
PutText(currentImageFrame, name + " ", new System.Drawing.Point(facesDetected[i].X, facesDetected[i].Y), Emgu.CV.CvEnum.FontFace.HersheyComplex, 1.0 , 新 Bgr(255, 255, 0).MCvScalar);我们就这样使用。您应该搜索类似的内容。
标签: keras deep-learning label face-recognition multilabel-classification