diff --git a/ppdet/engine/export_utils.py b/ppdet/engine/export_utils.py index 6af8b0f4757dca4d9b0e0ba76cffc1ff3308b9de..93f8a929c528472f82dc2638293086a23997317b 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)