mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-07-30 20:18:08 +00:00
checking condition is wrong (#3025)
* checking condition is wrong * remove unnecessary check
This commit is contained in:
parent
e3c27536d0
commit
18aa0940c2
1 changed files with 0 additions and 7 deletions
|
|
@ -152,13 +152,6 @@ BitmapBounds ImageFeatureValue::CenterAndCropBounds(
|
|||
bounds.Y = (m_heights[idx] - bounds.Height) / 2;
|
||||
}
|
||||
|
||||
// TODO: Do we allow smaller images?
|
||||
WINML_THROW_HR_IF_FALSE_MSG(
|
||||
WINML_ERR_INVALID_BINDING,
|
||||
(bounds.X >= 0 && bounds.X <= m_widths[idx]) &&
|
||||
(bounds.Y >= 0 && bounds.Y <= m_heights[idx]),
|
||||
"Failed to center crop the provided input image. The calculated bounds exceed the dimensions of the image, or do not match the model inputs dimensions.");
|
||||
|
||||
return bounds;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue