diff --git a/ppdet/data/source/dataset.py b/ppdet/data/source/dataset.py index fda0c7d22f616cdd54b9ac95d080f97bbdcff01e..7cddaa93a8cf8fdae0ae5008ea970aa4fdb91166 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 560ed17ea24028963c51ecddedcf4ac095a2e9f8..84c5990c3745574e0878bc087876cd8dd28312af 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__(