From f2ab17c056c4832327fa59796613c3d272bfda97 Mon Sep 17 00:00:00 2001 From: wangguanzhong Date: Wed, 8 Sep 2021 19:35:17 +0800 Subject: [PATCH] revert default value of allow_empty (#4150) --- ppdet/data/source/coco.py | 2 +- ppdet/data/source/voc.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ppdet/data/source/coco.py b/ppdet/data/source/coco.py index 6d8fdcc9e..5c401de14 100644 --- a/ppdet/data/source/coco.py +++ b/ppdet/data/source/coco.py @@ -48,7 +48,7 @@ class COCODataSet(DetDataset): data_fields=['image'], sample_num=-1, load_crowd=False, - allow_empty=True, + allow_empty=False, empty_ratio=1.): super(COCODataSet, self).__init__(dataset_dir, image_dir, anno_path, data_fields, sample_num) diff --git a/ppdet/data/source/voc.py b/ppdet/data/source/voc.py index b836b4d05..1c2a7ef98 100644 --- a/ppdet/data/source/voc.py +++ b/ppdet/data/source/voc.py @@ -55,7 +55,7 @@ class VOCDataSet(DetDataset): data_fields=['image'], sample_num=-1, label_list=None, - allow_empty=True, + allow_empty=False, empty_ratio=1.): super(VOCDataSet, self).__init__( dataset_dir=dataset_dir, -- GitLab