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

"python models.py 80 "./checkpoints/yolov4.pth" "./data/dog.jpg" 576 768" Error #549

Open
duys3416 opened this issue Nov 15, 2022 · 1 comment

Comments

@duys3416
Copy link

File "models.py", line 509, in
plot_boxes_cv2(img, boxes[0], 'predictions.jpg', class_names)
File "/home/duys/workspace/pytorch-YOLOv4/tool/utils.py", line 140, in plot_boxes_cv2
cv2.rectangle(img, (x1,y1), (np.float32(c3[0]), np.float32(c3[1])), rgb, -1)
cv2.error: OpenCV(4.6.0) 👎 error: (-5:Bad argument) in function 'rectangle'

Overload resolution failed:

  • Can't parse 'pt2'. Sequence item with index 0 has a wrong type
  • Can't parse 'pt2'. 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
@duys3416
Copy link
Author

Solutions: hunglc007/tensorflow-yolov4-tflite#368

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

1 participant