AlexeyAB / darknet

YOLOv4 / Scaled-YOLOv4 / YOLO - Neural Networks for Object Detection (Windows and Linux version of Darknet )
http://pjreddie.com/darknet/
Other
21.63k stars 7.95k forks source link

how to activate mish in opencv-python(spyder) #5946

Open jinmini95 opened 4 years ago

jinmini95 commented 4 years ago

i want to activate yolov4 in spyder(ipython) i install opencv python and opencv-contrib-python next, i write code ( net=cv2.dnn.readnet(yolov4.weights, yolov4.cfg))

but, i have an error non supported mish activation readnetFromDartnetCfgStream::

how to fix it???????? :(

wrs000001 commented 4 years ago

To use YOLOv4 in OpenCV, you can replace "mish" with "leaky" in “yolov4.cfg”. Then train the model. AP value will decrease a little bit.