From: JunX Date: Tue, 26 May 2020 11:27:14 +0000 (+0800) Subject: fix issue log print wrong origin image shape (#581) X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=7595512d1fc730e47a0e95fc9653211c2850b6e5;p=platform%2Fupstream%2Fdldt.git fix issue log print wrong origin image shape (#581) --- diff --git a/inference-engine/ie_bridges/python/sample/object_detection_sample_ssd/object_detection_sample_ssd.py b/inference-engine/ie_bridges/python/sample/object_detection_sample_ssd/object_detection_sample_ssd.py index 96af9de..ed3e946 100644 --- a/inference-engine/ie_bridges/python/sample/object_detection_sample_ssd/object_detection_sample_ssd.py +++ b/inference-engine/ie_bridges/python/sample/object_detection_sample_ssd/object_detection_sample_ssd.py @@ -101,8 +101,8 @@ def main(): log.info("File was added: ") log.info(" {}".format(args.input[i])) if (ih, iw) != (h, w): - image = cv2.resize(image, (w, h)) log.warning("Image {} is resized from {} to {}".format(args.input[i], image.shape[:-1], (h, w))) + image = cv2.resize(image, (w, h)) image = image.transpose((2, 0, 1)) # Change data layout from HWC to CHW images[i] = image