Ask Your Question
0

Running YoloV3 via openCV

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

KlaimNod gravatar image

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

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

Comments

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 -0600 )edit

1 answer

Sort by ยป oldest newest most voted
0

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

Michel gravatar image

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

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

Comments

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 -0600 )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 -0600 )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 -0600 )edit
1

Ok. Now I provided a full answer.

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

Question Tools

3 followers

Stats

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

Seen: 1,715 times

Last updated: Apr 25 '18