From a7474606caa31d829535de751a8b23c1fb5656a9 Mon Sep 17 00:00:00 2001 From: Channingss Date: Mon, 11 May 2020 09:22:07 +0000 Subject: [PATCH] fix bug --- paddlex/cv/transforms/det_transforms.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/paddlex/cv/transforms/det_transforms.py b/paddlex/cv/transforms/det_transforms.py index 57dfc68..cb9c88a 100644 --- a/paddlex/cv/transforms/det_transforms.py +++ b/paddlex/cv/transforms/det_transforms.py @@ -93,6 +93,8 @@ class Compose: # make default im_info with [h, w, 1] im_info['im_resize_info'] = np.array( [im.shape[0], im.shape[1], 1.], dtype=np.float32) + im_info['image_shape'] = np.array([im.shape[0], + im.shape[1]]).astype('int32') if not self.use_mixup: if 'mixup' in im_info: del im_info['mixup'] -- GitLab