Browse Source

Update yolov5.py (#3656)

fix rect position bug.
tags/20220420
Guo Haria GitHub 4 years ago
parent
commit
67f52ba73c
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      python/ncnn/model_zoo/yolov5.py

+ 2
- 2
python/ncnn/model_zoo/yolov5.py View File

@@ -261,8 +261,8 @@ class YoloV5s:
Detect_Object(
obj[5],
obj[4],
obj[0] / scale,
obj[1] / scale,
(obj[0] - (wpad / 2)) / scale,
(obj[1] - (hpad / 2)) / scale,
(obj[2] - obj[0]) / scale,
(obj[3] - obj[1]) / scale,
)


Loading…
Cancel
Save