我尝试使用从这个地方下载的权重和 cfg 在暗网上运行 Openpose:https ://github.com/lincolnhard/openpose-darknet
这是我尝试在 Opencv 中创建网络时出现的错误
modelConfiguration = path to cfg file
modelWeights = path to weights file
darknet = cv2.dnn.readNetFromDarknet(modelConfiguration, modelWeights)
() 中的错误 Traceback (最近一次调用最后一次) ----> 1 darknet = cv2.dnn.readNetFromDarknet(modelConfiguration, modelWeights)
错误:OpenCV(4.0.0) C:\projects\opencv-python\opencv\modules\dnn\src\darknet\darknet_io.cpp:552:错误:(-212:解析错误)不支持的激活:relu in function 'cv ::dnn::darknet::ReadDarknetFromCfgStream'