From 936ec224e9cb64413e962c37dfa5fb5e7f37d31e Mon Sep 17 00:00:00 2001 From: Feng Ni Date: Thu, 11 Aug 2022 17:22:26 +0800 Subject: [PATCH] add Resize export default interp (#6632) --- ppdet/engine/export_utils.py | 1 + 1 file changed, 1 insertion(+) diff --git a/ppdet/engine/export_utils.py b/ppdet/engine/export_utils.py index 6af8b0f47..93f8a929c 100644 --- a/ppdet/engine/export_utils.py +++ b/ppdet/engine/export_utils.py @@ -92,6 +92,7 @@ def _parse_reader(reader_cfg, dataset_cfg, metric, arch, image_shape): if key == 'Resize': if int(image_shape[1]) != -1: value['target_size'] = image_shape[1:] + value['interp'] = value.get('interp', 1) # cv2.INTER_LINEAR if fuse_normalize and key == 'NormalizeImage': continue p.update(value) -- GitLab