From 915d53706eaf8253158d4c9730ad27732ec62cf6 Mon Sep 17 00:00:00 2001 From: cnn Date: Wed, 16 Sep 2020 14:55:55 +0800 Subject: [PATCH] set use_default_label=False as default (#1409) --- ppdet/data/source/dataset.py | 4 ++-- ppdet/data/source/voc.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ppdet/data/source/dataset.py b/ppdet/data/source/dataset.py index fda0c7d22..7cddaa93a 100644 --- a/ppdet/data/source/dataset.py +++ b/ppdet/data/source/dataset.py @@ -41,7 +41,7 @@ class DataSet(object): anno_path=None, sample_num=-1, with_background=True, - use_default_label=None, + use_default_label=False, **kwargs): super(DataSet, self).__init__() self.anno_path = anno_path @@ -117,7 +117,7 @@ class ImageFolder(DataSet): anno_path=None, sample_num=-1, with_background=True, - use_default_label=None, + use_default_label=False, **kwargs): super(ImageFolder, self).__init__(dataset_dir, image_dir, anno_path, sample_num, with_background, diff --git a/ppdet/data/source/voc.py b/ppdet/data/source/voc.py index 560ed17ea..84c5990c3 100644 --- a/ppdet/data/source/voc.py +++ b/ppdet/data/source/voc.py @@ -51,7 +51,7 @@ class VOCDataSet(DataSet): image_dir=None, anno_path=None, sample_num=-1, - use_default_label=True, + use_default_label=False, with_background=True, label_list='label_list.txt'): super(VOCDataSet, self).__init__( -- GitLab