Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
机器未来
Paddle
提交
2494562d
P
Paddle
项目概览
机器未来
/
Paddle
与 Fork 源项目一致
Fork自
PaddlePaddle / Paddle
通知
1
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
1
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
P
Paddle
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
1
Issue
1
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
未验证
提交
2494562d
编写于
1月 20, 2021
作者:
C
cnn
提交者:
GitHub
1月 20, 2021
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
update document of paddle.vision.dataset, test=document (#30415)
上级
138a71b7
变更
5
显示空白变更内容
内联
并排
Showing
5 changed file
with
17 addition
and
18 deletion
+17
-18
python/paddle/vision/datasets/cifar.py
python/paddle/vision/datasets/cifar.py
+6
-8
python/paddle/vision/datasets/flowers.py
python/paddle/vision/datasets/flowers.py
+3
-4
python/paddle/vision/datasets/folder.py
python/paddle/vision/datasets/folder.py
+3
-0
python/paddle/vision/datasets/mnist.py
python/paddle/vision/datasets/mnist.py
+3
-3
python/paddle/vision/datasets/voc2012.py
python/paddle/vision/datasets/voc2012.py
+2
-3
未找到文件。
python/paddle/vision/datasets/cifar.py
浏览文件 @
2494562d
...
...
@@ -47,11 +47,10 @@ class Cifar10(Dataset):
Args:
data_file(str): path to data file, can be set None if
:attr:`download` is True. Default None
:attr:`download` is True. Default None
, default data path: ~/.cache/paddle/dataset/cifar
mode(str): 'train', 'test' mode. Default 'train'.
transform(callable): transform to perform on image, None for on transform.
download(bool): whether to download dataset automatically if
:attr:`data_file` is not set. Default True
transform(callable): transform to perform on image, None for no transform.
download(bool): download dataset automatically if :attr:`data_file` is None. Default True
backend(str, optional): Specifies which type of image to be returned:
PIL.Image or numpy.ndarray. Should be one of {'pil', 'cv2'}.
If this option is not set, will get backend from ``paddle.vsion.get_image_backend`` ,
...
...
@@ -181,11 +180,10 @@ class Cifar100(Cifar10):
Args:
data_file(str): path to data file, can be set None if
:attr:`download` is True. Default None
:attr:`download` is True. Default None
, default data path: ~/.cache/paddle/dataset/cifar
mode(str): 'train', 'test' mode. Default 'train'.
transform(callable): transform to perform on image, None for on transform.
download(bool): whether to download dataset automatically if
:attr:`data_file` is not set. Default True
transform(callable): transform to perform on image, None for no transform.
download(bool): download dataset automatically if :attr:`data_file` is None. Default True
backend(str, optional): Specifies which type of image to be returned:
PIL.Image or numpy.ndarray. Should be one of {'pil', 'cv2'}.
If this option is not set, will get backend from ``paddle.vsion.get_image_backend`` ,
...
...
python/paddle/vision/datasets/flowers.py
浏览文件 @
2494562d
...
...
@@ -47,15 +47,14 @@ class Flowers(Dataset):
Args:
data_file(str): path to data file, can be set None if
:attr:`download` is True. Default None
:attr:`download` is True. Default None
, default data path: ~/.cache/paddle/dataset/flowers/
label_file(str): path to label file, can be set None if
:attr:`download` is True. Default None
setid_file(str): path to subset index file, can be set
None if :attr:`download` is True. Default None
mode(str): 'train', 'valid' or 'test' mode. Default 'train'.
transform(callable): transform to perform on image, None for on transform.
download(bool): whether to download dataset automatically if
:attr:`data_file` is not set. Default True
transform(callable): transform to perform on image, None for no transform.
download(bool): download dataset automatically if :attr:`data_file` is None. Default True
backend(str, optional): Specifies which type of image to be returned:
PIL.Image or numpy.ndarray. Should be one of {'pil', 'cv2'}.
If this option is not set, will get backend from ``paddle.vsion.get_image_backend`` ,
...
...
python/paddle/vision/datasets/folder.py
浏览文件 @
2494562d
...
...
@@ -111,6 +111,9 @@ class DatasetFolder(Dataset):
return data_dir
temp_dir = make_fake_dir()
# temp_dir is root dir
# temp_dir/class_1/img1_1.jpg
# temp_dir/class_2/img2_1.jpg
data_folder = DatasetFolder(temp_dir)
for items in data_folder:
...
...
python/paddle/vision/datasets/mnist.py
浏览文件 @
2494562d
...
...
@@ -33,11 +33,11 @@ class MNIST(Dataset):
Args:
image_path(str): path to image file, can be set None if
:attr:`download` is True. Default None
:attr:`download` is True. Default None
, default data path: ~/.cache/paddle/dataset/mnist
label_path(str): path to label file, can be set None if
:attr:`download` is True. Default None
:attr:`download` is True. Default None
, default data path: ~/.cache/paddle/dataset/mnist
mode(str): 'train' or 'test' mode. Default 'train'.
download(bool):
whether to
download dataset automatically if
download(bool): download dataset automatically if
:attr:`image_path` :attr:`label_path` is not set. Default True
backend(str, optional): Specifies which type of image to be returned:
PIL.Image or numpy.ndarray. Should be one of {'pil', 'cv2'}.
...
...
python/paddle/vision/datasets/voc2012.py
浏览文件 @
2494562d
...
...
@@ -46,10 +46,9 @@ class VOC2012(Dataset):
Args:
data_file(str): path to data file, can be set None if
:attr:`download` is True. Default None
:attr:`download` is True. Default None
, default data path: ~/.cache/paddle/dataset/voc2012
mode(str): 'train', 'valid' or 'test' mode. Default 'train'.
download(bool): whether to download dataset automatically if
:attr:`data_file` is not set. Default True
download(bool): download dataset automatically if :attr:`data_file` is None. Default True
backend(str, optional): Specifies which type of image to be returned:
PIL.Image or numpy.ndarray. Should be one of {'pil', 'cv2'}.
If this option is not set, will get backend from ``paddle.vsion.get_image_backend`` ,
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录