Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
PaddleDetection
提交
cfca9c74
P
PaddleDetection
项目概览
PaddlePaddle
/
PaddleDetection
大约 1 年 前同步成功
通知
695
Star
11112
Fork
2696
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
184
列表
看板
标记
里程碑
合并请求
40
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
P
PaddleDetection
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
184
Issue
184
列表
看板
标记
里程碑
合并请求
40
合并请求
40
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
cfca9c74
编写于
4月 25, 2021
作者:
D
dengkaipeng
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
update 2.0.1
上级
85a82d9b
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
8 addition
and
7 deletion
+8
-7
docs/tutorials/INSTALL.md
docs/tutorials/INSTALL.md
+1
-1
docs/tutorials/INSTALL_cn.md
docs/tutorials/INSTALL_cn.md
+1
-1
ppdet/model_zoo/model_zoo.py
ppdet/model_zoo/model_zoo.py
+2
-2
ppdet/utils/download.py
ppdet/utils/download.py
+2
-1
setup.py
setup.py
+2
-2
未找到文件。
docs/tutorials/INSTALL.md
浏览文件 @
cfca9c74
...
...
@@ -71,7 +71,7 @@ PaddleDetection can be installed in the following two ways:
```
# install paddledet via pip
pip install paddledet==2.0.
0
-i https://pypi.tuna.tsinghua.edu.cn/simple
pip install paddledet==2.0.
1
-i https://pypi.tuna.tsinghua.edu.cn/simple
# Download and use the configuration files and code examples in the source code
git clone https://github.com/PaddlePaddle/PaddleDetection.git
...
...
docs/tutorials/INSTALL_cn.md
浏览文件 @
cfca9c74
...
...
@@ -66,7 +66,7 @@ python -c "import paddle; print(paddle.__version__)"
```
# pip安装paddledet
pip install paddledet==2.0.
0
-i https://pypi.tuna.tsinghua.edu.cn/simple
pip install paddledet==2.0.
1
-i https://pypi.tuna.tsinghua.edu.cn/simple
# 下载使用源码中的配置文件和代码示例
git clone https://github.com/PaddlePaddle/PaddleDetection.git
...
...
ppdet/model_zoo/model_zoo.py
浏览文件 @
cfca9c74
...
...
@@ -68,11 +68,11 @@ def list_model(filters=[]):
# models and configs save on bcebos under dygraph directory
def
get_config_file
(
model_name
):
return
get_config_path
(
"ppdet://
dygraph/
configs/{}.yml"
.
format
(
model_name
))
return
get_config_path
(
"ppdet://configs/{}.yml"
.
format
(
model_name
))
def
get_weights_url
(
model_name
):
return
"ppdet://
dygraph/{}.pdparams"
.
format
(
model_name
)
return
"ppdet://
models/{}.pdparams"
.
format
(
osp
.
split
(
model_name
)[
-
1
]
)
def
get_model
(
model_name
,
pretrained
=
True
):
...
...
ppdet/utils/download.py
浏览文件 @
cfca9c74
...
...
@@ -260,7 +260,8 @@ def get_path(url, root_dir, md5sum=None, check_exist=True):
fullpath
=
osp
.
join
(
osp
.
split
(
fullpath
)[
0
],
v
)
if
osp
.
exists
(
fullpath
)
and
check_exist
:
if
_check_exist_file_md5
(
fullpath
,
md5sum
,
url
):
if
not
osp
.
isfile
(
fullpath
)
or
\
_check_exist_file_md5
(
fullpath
,
md5sum
,
url
):
logger
.
debug
(
"Found {}"
.
format
(
fullpath
))
return
fullpath
,
True
else
:
...
...
setup.py
浏览文件 @
cfca9c74
...
...
@@ -42,7 +42,7 @@ def package_model_zoo():
# exclude dataset base config
if
osp
.
split
(
osp
.
split
(
cfg
)[
0
])[
1
]
not
in
[
'datasets'
]:
valid_cfgs
.
append
(
cfg
)
model_names
=
[
osp
.
splitext
(
osp
.
split
(
cfg
)[
1
])[
0
]
for
cfg
in
valid_cfgs
]
model_names
=
[
osp
.
relpath
(
cfg
,
cfg_dir
).
replace
(
".yml"
,
""
)
for
cfg
in
valid_cfgs
]
model_zoo_file
=
osp
.
join
(
cur_dir
,
'ppdet'
,
'model_zoo'
,
'MODEL_ZOO'
)
with
open
(
model_zoo_file
,
'w'
)
as
wf
:
...
...
@@ -70,7 +70,7 @@ if __name__ == "__main__":
packages
=
find_packages
(
exclude
=
(
"configs"
,
"tools"
,
"deploy"
)),
package_data
=
{
'ppdet.model_zoo'
:
package_model_zoo
()},
author
=
'PaddlePaddle'
,
version
=
'2.0.
0
'
,
version
=
'2.0.
1
'
,
install_requires
=
parse_requirements
(
'./requirements.txt'
),
description
=
'Object detection and instance segmentation toolkit based on PaddlePaddle'
,
long_description
=
readme
(),
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录