Skip to content

Commit 333b125

Browse files
eaidovaWovchena
andauthored
Update tools/accuracy_checker/openvino/tools/accuracy_checker/adapters/image_processing.py
Co-authored-by: Zlobin Vladimir <[email protected]>
1 parent 027672f commit 333b125

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tools/accuracy_checker/openvino/tools/accuracy_checker/adapters/image_processing.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,8 +94,8 @@ def process(self, raw, identifiers, frame_meta):
9494

9595
def _basic_postprocess(self, img):
9696
img = img.transpose((1, 2, 0)) if img.shape[-1] > 4 else img
97-
img *= np.array(self.std).astype(img.dtype)
98-
img += np.array(self.mean).astype(img.dtype)
97+
img *= np.array(self.std, dtype=img.dtype)
98+
img += np.array(self.mean, dtype=img.dtype)
9999
if self.cast_to_uint8:
100100
img = np.clip(img, 0., 255.)
101101
img = img.astype(np.uint8)

0 commit comments

Comments
 (0)