diff --git a/ppdet/data/reader.py b/ppdet/data/reader.py index 6d366fcae633ce34c78a94af2514b16871788a45..095ba96175b25180046c965ab2bdfffc788c4580 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)