Merge pull request #1116 from littletomatodonkey/sta/fix_resize

fix -1 in det resize
This commit is contained in:
MissPenguin 2020-11-09 14:34:14 +08:00 committed by GitHub
commit 5e2c1b303b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -88,7 +88,7 @@ void ResizeImgType0::Run(const cv::Mat &img, cv::Mat &resize_img,
else if (resize_w / 32 < 1 + 1e-5)
resize_w = 32;
else
resize_w = (resize_w / 32 - 1) * 32;
resize_w = resize_w / 32 * 32;
cv::resize(img, resize_img, cv::Size(resize_w, resize_h));