From 8e8704f5844681caf167c0270209e6c2beecf8b7 Mon Sep 17 00:00:00 2001 From: qipengfei7 Date: Sun, 26 Apr 2020 15:50:59 +0800 Subject: [PATCH] new robust reader --- ppdet/data/reader.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ppdet/data/reader.py b/ppdet/data/reader.py index 6d366fcae..095ba9617 100644 --- a/ppdet/data/reader.py +++ b/ppdet/data/reader.py @@ -341,7 +341,7 @@ class Reader(object): sample['image'] = self._load_image(sample['im_file']) except Exception as e: logger.warn('invalid imageļ¼š{}, error:{}'.format(sample['im_file'],e)) - is_valid_path = False + is_valid_img_path = False if self._epoch < self._mixup_epoch: num = len(self.indexes) -- GitLab