Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error using run_ssd_live_demo.py #173

Open
julian998-dot opened this issue Mar 3, 2022 · 1 comment
Open

Error using run_ssd_live_demo.py #173

julian998-dot opened this issue Mar 3, 2022 · 1 comment

Comments

@julian998-dot
Copy link

Hi!
Im trying to use this repo to re-train an ssd model.
As the readme said, i tried to run : python3 run_ssd_live_demo.py mb1-ssd models/mobilenet-v1-ssd-mp-0_675.pth models/voc-model-labels.txt
But i got this as output:

Inference time:  0.037155866622924805
Time: 0.04s, Detect Objects: 1.
Traceback (most recent call last):
  File "run_ssd_live_demo.py", line 76, in <module>
    cv2.rectangle(orig_image, (box[0], box[1]), (box[2], box[3]), (255, 255, 0), 4)
cv2.error: OpenCV(4.5.5) :-1: error: (-5:Bad argument) in function 'rectangle'
> Overload resolution failed:
>  - Can't parse 'pt1'. Sequence item with index 0 has a wrong type
>  - Can't parse 'pt1'. Sequence item with index 0 has a wrong type
>  - Can't parse 'rec'. Expected sequence length 4, got 2
>  - Can't parse 'rec'. Expected sequence length 4, got 2

I dont know what to do.
Maybe the version of the OpenCV?

@kinoshita-hidetoshi
Copy link
Contributor

Hi,
If you like, see the article below posted by me and someone. I am sure that these fixes can solve your problem.

Best regards,
Hide

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants