Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
机器未来
Paddle
提交
ac493f2c
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看板
未验证
提交
ac493f2c
编写于
3月 11, 2021
作者:
L
LielinJiang
提交者:
GitHub
3月 11, 2021
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Update comments for API `RandomResizedCrop` (#31539)
* update comments
上级
0f1e7e3d
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
2 addition
and
39 deletion
+2
-39
python/paddle/utils/download.py
python/paddle/utils/download.py
+0
-38
python/paddle/vision/transforms/transforms.py
python/paddle/vision/transforms/transforms.py
+2
-1
未找到文件。
python/paddle/utils/download.py
浏览文件 @
ac493f2c
...
@@ -61,44 +61,6 @@ WEIGHTS_HOME = osp.expanduser("~/.cache/paddle/hapi/weights")
...
@@ -61,44 +61,6 @@ WEIGHTS_HOME = osp.expanduser("~/.cache/paddle/hapi/weights")
DOWNLOAD_RETRY_LIMIT
=
3
DOWNLOAD_RETRY_LIMIT
=
3
nlp_models
=
OrderedDict
((
(
'RoBERTa-zh-base'
,
'https://bert-models.bj.bcebos.com/chinese_roberta_wwm_ext_L-12_H-768_A-12.tar.gz'
),
(
'RoBERTa-zh-large'
,
'https://bert-models.bj.bcebos.com/chinese_roberta_wwm_large_ext_L-24_H-1024_A-16.tar.gz'
),
(
'ERNIE-v2-en-base'
,
'https://ernie.bj.bcebos.com/ERNIE_Base_en_stable-2.0.0.tar.gz'
),
(
'ERNIE-v2-en-large'
,
'https://ernie.bj.bcebos.com/ERNIE_Large_en_stable-2.0.0.tar.gz'
),
(
'XLNet-cased-base'
,
'https://xlnet.bj.bcebos.com/xlnet_cased_L-12_H-768_A-12.tgz'
),
(
'XLNet-cased-large'
,
'https://xlnet.bj.bcebos.com/xlnet_cased_L-24_H-1024_A-16.tgz'
),
(
'ERNIE-v1-zh-base'
,
'https://baidu-nlp.bj.bcebos.com/ERNIE_stable-1.0.1.tar.gz'
),
(
'ERNIE-v1-zh-base-max-len-512'
,
'https://ernie.bj.bcebos.com/ERNIE_1.0_max-len-512.tar.gz'
),
(
'BERT-en-uncased-large-whole-word-masking'
,
'https://bert-models.bj.bcebos.com/wwm_uncased_L-24_H-1024_A-16.tar.gz'
),
(
'BERT-en-cased-large-whole-word-masking'
,
'https://bert-models.bj.bcebos.com/wwm_cased_L-24_H-1024_A-16.tar.gz'
),
(
'BERT-en-uncased-base'
,
'https://bert-models.bj.bcebos.com/uncased_L-12_H-768_A-12.tar.gz'
),
(
'BERT-en-uncased-large'
,
'https://bert-models.bj.bcebos.com/uncased_L-24_H-1024_A-16.tar.gz'
),
(
'BERT-en-cased-base'
,
'https://bert-models.bj.bcebos.com/cased_L-12_H-768_A-12.tar.gz'
),
(
'BERT-en-cased-large'
,
'https://bert-models.bj.bcebos.com/cased_L-24_H-1024_A-16.tar.gz'
),
(
'BERT-multilingual-uncased-base'
,
'https://bert-models.bj.bcebos.com/multilingual_L-12_H-768_A-12.tar.gz'
),
(
'BERT-multilingual-cased-base'
,
'https://bert-models.bj.bcebos.com/multi_cased_L-12_H-768_A-12.tar.gz'
),
(
'BERT-zh-base'
,
'https://bert-models.bj.bcebos.com/chinese_L-12_H-768_A-12.tar.gz'
),
))
def
is_url
(
path
):
def
is_url
(
path
):
"""
"""
...
...
python/paddle/vision/transforms/transforms.py
浏览文件 @
ac493f2c
...
@@ -407,7 +407,8 @@ class RandomResizedCrop(BaseTransform):
...
@@ -407,7 +407,8 @@ class RandomResizedCrop(BaseTransform):
Args:
Args:
size (int|list|tuple): Target size of output image, with (height, width) shape.
size (int|list|tuple): Target size of output image, with (height, width) shape.
scale (list|tuple): Range of size of the origin size cropped. Default: (0.08, 1.0)
scale (list|tuple): Scale range of the cropped image before resizing, relatively to the origin
image. Default: (0.08, 1.0)
ratio (list|tuple): Range of aspect ratio of the origin aspect ratio cropped. Default: (0.75, 1.33)
ratio (list|tuple): Range of aspect ratio of the origin aspect ratio cropped. Default: (0.75, 1.33)
interpolation (int|str, optional): Interpolation method. Default: 'bilinear'. when use pil backend,
interpolation (int|str, optional): Interpolation method. Default: 'bilinear'. when use pil backend,
support method are as following:
support method are as following:
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录