Face-Detector-1MB-with-landmark icon indicating copy to clipboard operation
Face-Detector-1MB-with-landmark copied to clipboard

mobilenet0.25 c++ inference problem

Open Royzon opened this issue 6 years ago • 9 comments

there is no face detected when I change the model to mobilenet0.25 and the nodes name of out out1 out2 to output0 586 585.

Royzon avatar Oct 28 '19 05:10 Royzon

when I change the model to mobilenet0.25 and the nodes name of out out1 out2 to output0 586 585.there are many wrong face detected. Have you solved this problem

DuckJ avatar Oct 29 '19 08:10 DuckJ

change https://github.com/biubug6/Face-Detector-1MB-with-landmark/blob/master/Face_Detector_ncnn/FaceDetector.cpp#L45 false, there are also many wrong face detected,but the number is different from above.

DuckJ avatar Oct 29 '19 09:10 DuckJ

我本地改动run_video_face_detect_onnx.py 文件支持测试图片,使用Mb_Tiny_RFB_FD_train_input_640.onnx模型,但是结果未检测到人脸,这个是为什么呢?@biubug6

zjd1988 avatar Oct 29 '19 11:10 zjd1988

不好意思,知道错在哪了,模型应该没啥问题。 @biubug6

zjd1988 avatar Oct 29 '19 11:10 zjd1988

@Royzon @DuckJ Thank you for your feedback. The anchor size of retinaface is different from RFB or Slim. I will fix bug today.

biubug6 avatar Oct 29 '19 11:10 biubug6

@Royzon @DuckJ Bug has been repaired! If you want to use retinaface C++ inference, please use "Detector detector(param, bin, true);" in main.cpp.

biubug6 avatar Oct 29 '19 12:10 biubug6

@biubug6 thanks

DuckJ avatar Oct 30 '19 02:10 DuckJ

@biubug6 thx for your greate works @DuckJ For mobilenet0.25_Final.pth c++ inference, my steps:

  1. change the model to mobilenet0.25 and the nodes name of out out1 out2 to output0 586 585
  2. use "Detector detector(param, bin, true);" in main.cpp. and I set max_side=640(keep same as the training step??)
  3. FaceDetector.cpp -->create_anchor_retinaface (keep same as the training step) L212 minsize1={16,32}; L214 minsize1={64,128}; L216 minsize1={256,512};

redlibo avatar Nov 12 '19 05:11 redlibo

作者原模型的landmark输出只有4个点,为什么却说是5个点的关键点呢?--------在face.param里面找到作者对应的几个输出口,就可以看到输出维度!

yutao007 avatar Dec 03 '19 12:12 yutao007