解决报错 Error in processing command line: Don‘t understand command line argument “-cl-no-subgroup-ifp“

调用openpose进行姿势检测,发现报错(虽然报错但能继续运行,输出检测结果)

OpenCV(ocl4dnn): consider to specify kernel configuration cache directory 
                 via OPENCV_OCL4DNN_CONFIG_PATH parameter.
OpenCL program build log: dnn/dummy
Status -11: CL_BUILD_PROGRAM_FAILURE
-cl-no-subgroup-ifp
Error in processing command line: Don't understand command line argument "-cl-no-subgroup-ifp"!

翻看博客发现有人给出解决方案,在模型初始化里将DNN_TARGET_OPENCL替换为DNN_TARGET_CPU,成功解决报错,而且模型检测时间缩短

self.pose_net.setPreferableBackend(cv2.dnn.DNN_BACKEND_OPENCV)
self.pose_net.setPreferableTarget(cv2.dnn.DNN_TARGET_CPU)  ### 将DNN_TARGET_OPENCL替换为DNN_TARGET_CPU,解决报错

猜你喜欢

转载自blog.csdn.net/weixin_47214888/article/details/124583981