函数'cv :: dnn :: ConvolutionLayerImpl :: getMemoryShapes'中的OpenCV深度学习面部检测断言错误


biu~额
2025-03-15 09:15:37 (5天前)


我按照教程使用OpenCV和深度学习SSD框架从图像实现面部检测。

modelFile =“./ssd/res10_300x300_ssd_iter_140000.caffemodel”
configFile =“./ sd / deloy …

3 条回复
  1. 0# 布偶的表弟派大星丶 | 2019-08-31 10-32



    我无法使用OpenCV 3.4.2和OpenCV 4.0.0重现您的问题。



    这是我得到的:








    附:我从下载res10_300x300_ssd_iter_140000.caffemodel

    https://raw.githubusercontent.com/opencv/opencv_3rdparty/dnn_samples_face_detector_20170830/res10_300x300_ssd_iter_140000.caffemodel

    和来自的deploy.prototxt

    https://github.com/opencv/opencv/raw/3.4.0/samples/dnn/face_detector/deploy.prototxt



  2. 1# 甲基蓝 | 2019-08-31 10-32



    我想我知道你的问题在哪里,请检查你的ssd文件夹下的这两个文件“deploy.prototxt”和“res10_300x300_ssd_iter_140000.caffemodel”。如果文件的大小不为零,则可能会发生下载被阻止/中断(被防火墙阻止,连接失败等)与原始大小进行比较的情况。如果大小为零,则根本不下载。



    在这两种情况下,
    请转到“

    https://github.com/opencv/opencv/blob/master/samples/dnn/face_detector/deploy.prototxt

    “github存储库








    https://github.com/opencv/opencv_3rdparty/raw/dnn_samples_face_detector_20170830/res10_300x300_ssd_iter_140000.caffemodel

    “下载具有相同名称的两个文件并替换它们。



    或者您可以使用之前使用的相同来源。


登录 后才能参与评论