fix -1 in det resize

This commit is contained in:
littletomatodonkey 2020-11-05 14:33:33 +00:00
parent f21c41c3b5
commit e57e9938d4
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));