You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Object detection sample code does not work with YOLOv3 model #15403
@ManzarIMalik My guess is that you are running Python 3.7 or newer, where the async keyword is reserved. You will have to change the variable name used by the sample code, or use an earlier version of the sample code (a few commits back) that does not provide the async feature.
@rgov yes, it run well after add --scale, I have an other question that I train my model(model.h5) by qqwweee,then I convert the model's format to model.weights, but the result is so bad, Do you have any good suggestions?
Activity
rgov commentedon Aug 27, 2019
Config file was damaged. The URLs are corrected above. This works better now.
ManzarIMalik commentedon Sep 1, 2019
@rgov, I am having this code error in object detection sample code file. How did you fix this?
if args.async: line 234 ^ SyntaxError: invalid syntaxrgov commentedon Sep 1, 2019
@ManzarIMalik My guess is that you are running Python 3.7 or newer, where the
asynckeyword is reserved. You will have to change the variable name used by the sample code, or use an earlier version of the sample code (a few commits back) that does not provide the async feature.Please post back if that works.
ManzarIMalik commentedon Sep 1, 2019
@rgov, Yes it works now. Thank you :)
zhoujinhai commentedon Sep 5, 2019
@rgov
The code is run, but the result is bad, What parameters do you need to adjust?
zhoujinhai commentedon Sep 5, 2019
rgov commentedon Sep 5, 2019
Hi @zhoujinhai maybe this will help you? https://stackoverflow.com/questions/57679946/poor-object-detection-with-opencv-dnn-and-yolov3 The answer involves passing the
--scaleand--rgbparameters.zhoujinhai commentedon Sep 5, 2019
@rgov yes, it run well after add
--scale, I have an other question that I train my model(model.h5) by qqwweee,then I convert the model's format to model.weights, but the result is so bad, Do you have any good suggestions?use-> model.weights model.cfg and classes

use->model.h5

rgov commentedon Sep 6, 2019
Sorry @zhoujinhai, I don't know. I suggest posting your question to StackOverflow or https://answers.opencv.org.
zhoujinhai commentedon Sep 6, 2019
@rgov ok, thanks.