fix issue log print wrong origin image shape (#581)
This commit is contained in:
parent
c3aa866a33
commit
7595512d1f
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user