Open akshayjaryal603 opened 4 years ago
Wait for new OpenCV release or use OpenCV-master-branch: https://github.com/opencv/opencv
If you want to use dnn module in OpenCV to run yolov4, you can complie the source code (checkout master). I have tried, it works.
如果要在OpenCV中使用dnn模块运行yolov4,则可以编译源代码(检出母版)。我试过了,行得通。 Hi! I ’m just a little white, can you tell me more.thankyou
Hey @AlexeyAB , Its not working after checkout with master. Showing the same problem
Use branch opencv:3.4
until new OpenCV will be released https://github.com/opencv/opencv/pull/17185
Hey @AlexeyAB , it again showing below error
cv2.error: OpenCV(3.4.10-dev) /home/akhil/opencv_build/opencv-3.4/modules/dnn/src/darknet/darknet_io.cpp:864: error: (-213:The function/feature is not implemented) Transpose the weights (except for convolutional) is not implemented in function 'ReadDarknetFromWeightsStream'
yes I used the same file @AlexeyAB. But showing the above error.
Hey @AlexeyAB , How to solve this..
How do you run it?
Can you successfully run Yolov3?
There is mish activation in the current master-branch, so it supports Yolov4: https://github.com/opencv/opencv/blob/master/modules/dnn/src/darknet/darknet_io.cpp#L232-L235
Hi, I have used the code using cv2.dnn(...) for loading the weights in yolov3 python. How to use this link https://github.com/opencv/opencv/archive/3.4.zip to fix the cv2.dnn() loading error for yolov4?
Using https://github.com/opencv/opencv/pull/17185#issue-410624326
When i build opencv(3.4.10 - clone repo and checked out to 3.4.10 branch) from scratch and tried running :
import cv2 net = cv2.dnn_DetectionModel(yolov4.cfg', 'yolov4.weights)
It throws "cv2.cv2 has no module "dnn_DetectionModel" "
Kindly provide some support @AlexeyAB , @HYL-Dave , @I-bat
Same issue I am also facing when I compile the specified version of OpenCV. Help Needed @AlexeyAB !
@akshayjaryal603 https://pullrequest.opencv.org/buildbot/export/opencv_releases/3_4_pack-android/ with this version https://pullrequest.opencv.org/buildbot/export/opencv_releases/3_4_pack-android/20200624-022839--785/ of today and I didn't got issues
But if you want build it, you have to clone this branch: https://github.com/opencv/opencv/tree/3.4
the same issue here
Does OpenCV support YoloV4?? If yes, which version of OpenCV is compatible.
Yes, @snehitvaddi Opencv 4.4.0 support YoloV4.
I tried to run the code using dnn module in OpenCV but I got error mish activation function is not supported. Can you please help me to solve this issue?
Thanks, @AlexeyAB