AlexeyAB / darknet

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

Yolo V4 OpenCV error: (-212:Parsing error) Unsupported activation: mish in function #5366

Open nasio91 opened 4 years ago

nasio91 commented 4 years ago

Hi! Im tryng to use Yolo v4 on my project, but i got this error:

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

With Yolo v3 i have no problem :(

halvomez commented 4 years ago

Hi, yolo v4 is new, looking for the OpenCV fix opencv/opencv#17148

pavana27 commented 4 years ago

Hi, Is this issue resolved? if so can you please let me know the steps?

ramdhan1989 commented 4 years ago

waiting update opencv

mon28 commented 4 years ago

Any idea when it will get released?

darrenclover commented 4 years ago

各位好!在issues里看了半天了,看的我有点晕。我也遇到了这个报错error: (-212:Parsing error) Unsupported activation: mish in function 'ReadDarknetFromCfgStream',这个问题到底被解决了吗?使用哪个版本能解决这个报错呢?

ZijianWang-ZW commented 4 years ago

It seems that the problem has not been solved yet.

AlexeyAB commented 4 years ago

There is no problem if you use OpenCV-master-branch

ramdhan1989 commented 4 years ago

I Got problem building from master branch using windows. So, for temporary solution replace mish to leaky activation in cfg file

Get Outlook for Androidhttps://aka.ms/ghei36


From: Alexey notifications@github.com Sent: Friday, June 26, 2020 9:14:40 PM To: AlexeyAB/darknet darknet@noreply.github.com Cc: ramdhan1989 ramdhan_aw@live.com; Comment comment@noreply.github.com Subject: Re: [AlexeyAB/darknet] Yolo V4 OpenCV error: (-212:Parsing error) Unsupported activation: mish in function (#5366)

There is no problem if you use OpenCV-master-branch

— You are receiving this because you commented. Reply to this email directly, view it on GitHubhttps://github.com/AlexeyAB/darknet/issues/5366#issuecomment-650202358, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AJ2VZIAQMUTG22PHUGWC3P3RYSUNBANCNFSM4MSLF4NQ.

oboyraz commented 4 years ago

how can i and from where to install the last version opencv - master branch.

darrenclover commented 4 years ago

我如何以及从哪里可以安装最新版本的opencv-master分支。

我已经解决了这个问题,你可以去看看我的博客。https://darrenclover.gitee.io/posts/2020/06/20200625055604.html 或者 http://zhifou.run/posts/2020/06/20200625055604.html

goncz commented 4 years ago

Same issue here when using yolov4:

Traceback (most recent call last): File "main.py", line 57, in <module> net = cv2.dnn.readNetFromDarknet(configPath, weightsPath) cv2.error: OpenCV(4.3.0) /io/opencv/modules/dnn/src/darknet/darknet_io.cpp:821: error: (-212:Parsing error) Unsupported activation: mish in function 'ReadDarknetFromCfgStream'

AlexeyAB commented 4 years ago

Download and compile https://github.com/opencv/opencv/archive/master.zip or wait for OpenCV 4.4.0 release https://opencv.org/releases/