diff --git a/ppdet/data/reader.py b/ppdet/data/reader.py index f63e916c0fbbe8ad9d02065c4d6eac0c10c76490..6d366fcae633ce34c78a94af2514b16871788a45 100644 --- a/ppdet/data/reader.py +++ b/ppdet/data/reader.py @@ -351,7 +351,7 @@ class Reader(object): if self._load_img: sample['mixup']['image'] = self._load_image(sample['mixup'][ 'im_file']) - if is_valid_path: + if is_valid_img_path: batch.append(sample) bs += 1 return batch