From 89e2fe772ecfd320b7ca313713d09d4ffb152e72 Mon Sep 17 00:00:00 2001 From: sunyanfang01 Date: Sat, 9 May 2020 14:14:49 +0800 Subject: [PATCH] modify docs --- paddlex/cv/datasets/coco.py | 2 +- paddlex/cv/datasets/easydata_cls.py | 2 +- paddlex/cv/datasets/easydata_det.py | 2 +- paddlex/cv/datasets/easydata_seg.py | 2 +- paddlex/cv/datasets/imagenet.py | 2 +- paddlex/cv/datasets/seg_dataset.py | 2 +- paddlex/cv/datasets/voc.py | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) diff --git a/paddlex/cv/datasets/coco.py b/paddlex/cv/datasets/coco.py index dc9946a..0c0dda0 100644 --- a/paddlex/cv/datasets/coco.py +++ b/paddlex/cv/datasets/coco.py @@ -44,7 +44,7 @@ class CocoDetection(VOCDetection): transforms=None, num_workers='auto', buffer_size=100, - parallel_method='process', + parallel_method='thread', shuffle=False): from pycocotools.coco import COCO diff --git a/paddlex/cv/datasets/easydata_cls.py b/paddlex/cv/datasets/easydata_cls.py index c947206..a23061e 100644 --- a/paddlex/cv/datasets/easydata_cls.py +++ b/paddlex/cv/datasets/easydata_cls.py @@ -47,7 +47,7 @@ class EasyDataCls(ImageNet): transforms=None, num_workers='auto', buffer_size=100, - parallel_method='process', + parallel_method='thread', shuffle=False): super(ImageNet, self).__init__( transforms=transforms, diff --git a/paddlex/cv/datasets/easydata_det.py b/paddlex/cv/datasets/easydata_det.py index 6424806..5db3148 100644 --- a/paddlex/cv/datasets/easydata_det.py +++ b/paddlex/cv/datasets/easydata_det.py @@ -48,7 +48,7 @@ class EasyDataDet(VOCDetection): transforms=None, num_workers='auto', buffer_size=100, - parallel_method='process', + parallel_method='thread', shuffle=False): super(VOCDetection, self).__init__( transforms=transforms, diff --git a/paddlex/cv/datasets/easydata_seg.py b/paddlex/cv/datasets/easydata_seg.py index 56f8017..09b434f 100644 --- a/paddlex/cv/datasets/easydata_seg.py +++ b/paddlex/cv/datasets/easydata_seg.py @@ -46,7 +46,7 @@ class EasyDataSeg(Dataset): transforms=None, num_workers='auto', buffer_size=100, - parallel_method='process', + parallel_method='thread', shuffle=False): super(EasyDataSeg, self).__init__( transforms=transforms, diff --git a/paddlex/cv/datasets/imagenet.py b/paddlex/cv/datasets/imagenet.py index 06ca1ce..2d44643 100644 --- a/paddlex/cv/datasets/imagenet.py +++ b/paddlex/cv/datasets/imagenet.py @@ -46,7 +46,7 @@ class ImageNet(Dataset): transforms=None, num_workers='auto', buffer_size=100, - parallel_method='process', + parallel_method='thread', shuffle=False): super(ImageNet, self).__init__( transforms=transforms, diff --git a/paddlex/cv/datasets/seg_dataset.py b/paddlex/cv/datasets/seg_dataset.py index 2c56c5d..7b78080 100644 --- a/paddlex/cv/datasets/seg_dataset.py +++ b/paddlex/cv/datasets/seg_dataset.py @@ -44,7 +44,7 @@ class SegDataset(Dataset): transforms=None, num_workers='auto', buffer_size=100, - parallel_method='process', + parallel_method='thread', shuffle=False): super(SegDataset, self).__init__( transforms=transforms, diff --git a/paddlex/cv/datasets/voc.py b/paddlex/cv/datasets/voc.py index db63d98..a4c7351 100644 --- a/paddlex/cv/datasets/voc.py +++ b/paddlex/cv/datasets/voc.py @@ -48,7 +48,7 @@ class VOCDetection(Dataset): transforms=None, num_workers='auto', buffer_size=100, - parallel_method='process', + parallel_method='thread', shuffle=False): from pycocotools.coco import COCO super(VOCDetection, self).__init__( -- GitLab