-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
C++ draw_mask_bbox The Rect r maybe out of bounds #1404
Comments
for (size_t i = 0; i < dets.size(); i++) { |
What does this mean? Did you find a bug? Have you fix it? |
多谢!加了这个解决了崩溃的问题 |
是的 运行官方的yolov5s-seg模型和推理bus.jpg图的时候,这会报错,查看错误,发现是因为像素的地址超过了图像的范围。 |
@a819411321 Can you help raise a PR to fix this? |
cv::Rect r = get_rect(img, dets[i].bbox); modify get_rect int x = round(l); |
x ,y will still be less than 0 |
The text was updated successfully, but these errors were encountered: