fix 1e-5
This commit is contained in:
parent
183dbfbec6
commit
5760f73be6
|
@ -85,7 +85,7 @@ void ResizeImgType0::Run(const cv::Mat &img, cv::Mat &resize_img,
|
||||||
|
|
||||||
if (resize_w % 32 == 0)
|
if (resize_w % 32 == 0)
|
||||||
resize_w = resize_w;
|
resize_w = resize_w;
|
||||||
else if (resize_w / 32 < 1)
|
else if (resize_w / 32 < 1 + 1e-5)
|
||||||
resize_w = 32;
|
resize_w = 32;
|
||||||
else
|
else
|
||||||
resize_w = (resize_w / 32 - 1) * 32;
|
resize_w = (resize_w / 32 - 1) * 32;
|
||||||
|
@ -138,4 +138,4 @@ void ClsResizeImg::Run(const cv::Mat &img, cv::Mat &resize_img,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
} // namespace PaddleOCR
|
} // namespace PaddleOCR
|
||||||
|
|
Loading…
Reference in New Issue