Ask Your Question

Running YoloV3 via openCV

asked 2018-04-05 08:48:49 -0500

KlaimNod gravatar image

updated 2018-04-05 08:49:58 -0500

Hello, I am trying to perform object detection using Yolov3 cfg and weights via readNetFromDarknet(cfg_file, weight_file) in opencv. I run into an opencv issue as the layer_type = 'shortcut' is missing from the opencv implementation of Yolov2. Unlike layer_type = 'route' in Yolov2, shortcut has linear activation as well. So, it cannot be simply replaced and opencv recompiled. Until the recent Yolov3 change trickles down to opencv, is there any possible workaround that anyone can think of? Thanks in advance!

edit retag flag offensive close merge delete


I have the same issue, please note here, if you found a solution in the meantime... Thank you!

Michel gravatar imageMichel ( 2018-04-08 03:35:33 -0500 )edit

1 answer

Sort by ยป oldest newest most voted

answered 2018-04-11 10:43:59 -0500

Michel gravatar image

updated 2018-04-25 06:53:44 -0500

edited by @StevenPuttemans

Update: the yolov3 is now included [18/04/2018] in OpenCV, so make sure that you at least download a version that is past that point to have a working interface with YoloV3 models.

For more information, please refer to the raised and closed issue and the corresponding pull request.

edit flag offensive delete link more


please take the time, to explain the solution. a link to SO is not helpful at all.

berak gravatar imageberak ( 2018-04-11 10:47:35 -0500 )edit

I am not claiming that this is the solution. But as KlaimNod is trying to use yolov3 config/weights in opencv I think it is relevant that these are not supported as yet.

Michel gravatar imageMichel ( 2018-04-11 10:51:28 -0500 )edit

please understand though, that an outward link only never can be a valid answer here.

berak gravatar imageberak ( 2018-04-11 10:57:32 -0500 )edit

Ok. Now I provided a full answer.

Michel gravatar imageMichel ( 2018-04-11 11:43:08 -0500 )edit

Question Tools



Asked: 2018-04-05 08:48:49 -0500

Seen: 1,265 times

Last updated: Apr 25 '18