我尝试使用从这个地方下载的权重和 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)
Run Code Online (Sandbox Code Playgroud)
() 中的错误回溯(最近一次调用)----> 1 暗网 = cv2.dnn.readNetFromDarknet(modelConfiguration, modelWeights)
错误: OpenCV(4.0.0) C:\projects\opencv-python\opencv\modules\dnn\src\darknet\darknet_io.cpp:552: 错误: (-212:Parsing error) 不支持的激活: relu in function 'cv ::dnn::darknet::ReadDarknetFromCfgStream'