Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unsupported activation: relu in function 'cv::dnn::darknet::ReadDarknetFromCfgStream' #10

Open
oliviaolivia700 opened this issue Apr 1, 2019 · 1 comment

Comments

@oliviaolivia700
Copy link

modelConfiguration = "C:/Users/olivia lai/Downloads/poseEstimation/OpenPose-Multi-Person/pose/darknet/openpose.cfg"
modelWeights = "C:/Users/olivia lai/Downloads/poseEstimation/OpenPose-Multi-Person/pose/darknet/openpose.weight"
darknet = cv2.dnn.readNetFromDarknet(modelConfiguration, modelWeights)

And then I got this error

error Traceback (most recent call last)
in ()
----> 1 darknet = cv2.dnn.readNetFromDarknet(modelConfiguration, modelWeights)

error: OpenCV(4.0.0) C:\projects\opencv-python\opencv\modules\dnn\src\darknet\darknet_io.cpp:552: error: (-212:Parsing error) Unsupported activation: relu in function 'cv::dnn::darknet::ReadDarknetFromCfgStream'

Please help. Thanks so much for your work =D

@oliviaolivia700
Copy link
Author

I think OpenCV prompted this error because relu could not be used as an activation function in convolutional layers???

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant