From 2473adf24f7a84ecd21eaa01f7fb739a0406817b Mon Sep 17 00:00:00 2001 From: Danish Farid Date: Thu, 17 Sep 2020 18:28:41 -0400 Subject: [PATCH] PadBboxes Call fixed in RandomCropWithBboxOp --- .../dataset/kernels/image/random_crop_with_bbox_op.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mindspore/ccsrc/minddata/dataset/kernels/image/random_crop_with_bbox_op.cc b/mindspore/ccsrc/minddata/dataset/kernels/image/random_crop_with_bbox_op.cc index a5972ffd71..16d48f6a05 100644 --- a/mindspore/ccsrc/minddata/dataset/kernels/image/random_crop_with_bbox_op.cc +++ b/mindspore/ccsrc/minddata/dataset/kernels/image/random_crop_with_bbox_op.cc @@ -46,8 +46,8 @@ Status RandomCropWithBBoxOp::Compute(const TensorRow &input, TensorRow *output) &padded_image_w, &padded_image_h, &crop_further)); // update bounding boxes with new values based on relevant image padding - if (t_pad_left || t_pad_bottom) { - RETURN_IF_NOT_OK(BoundingBox::PadBBoxes(&(*output)[1], boxCount, t_pad_left, t_pad_top)); + if (t_pad_left || t_pad_top) { + RETURN_IF_NOT_OK(BoundingBox::PadBBoxes(&(*output)[1], boxCount, t_pad_top, t_pad_left)); } if (!crop_further) { // no further cropping required