Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
PaddleDetection
提交
1aa7e2e4
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看板
未验证
提交
1aa7e2e4
编写于
5月 12, 2021
作者:
K
Kaipeng Deng
提交者:
GitHub
5月 12, 2021
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix static notice & GETTING_STARTED (#2809)
上级
9623cb9e
变更
3
显示空白变更内容
内联
并排
Showing
3 changed file
with
20 addition
and
7 deletion
+20
-7
docs/tutorials/GETTING_STARTED.md
docs/tutorials/GETTING_STARTED.md
+2
-2
docs/tutorials/GETTING_STARTED_cn.md
docs/tutorials/GETTING_STARTED_cn.md
+2
-2
static/ppdet/modeling/tests/test_architectures.py
static/ppdet/modeling/tests/test_architectures.py
+16
-3
未找到文件。
docs/tutorials/GETTING_STARTED.md
浏览文件 @
1aa7e2e4
...
@@ -28,9 +28,9 @@ export CUDA_VISIBLE_DEVICES=0,1,2,3,4,5,6,7
...
@@ -28,9 +28,9 @@ export CUDA_VISIBLE_DEVICES=0,1,2,3,4,5,6,7
python
-m
paddle.distributed.launch
--gpus
0,1,2,3,4,5,6,7 tools/train.py
-c
configs/faster_rcnn/faster_rcnn_r50_fpn_1x_coco.yml
python
-m
paddle.distributed.launch
--gpus
0,1,2,3,4,5,6,7 tools/train.py
-c
configs/faster_rcnn/faster_rcnn_r50_fpn_1x_coco.yml
# GPU evaluation
# GPU evaluation
export
CUDA_VISIBLE_DEVICES
=
0
export
CUDA_VISIBLE_DEVICES
=
0
python tools/eval.py
-c
configs/faster_rcnn/faster_rcnn_r50_fpn_1x_coco.yml
python tools/eval.py
-c
configs/faster_rcnn/faster_rcnn_r50_fpn_1x_coco.yml
-o
weights
=
https://paddledet.bj.bcebos.com/models/faster_rcnn_r50_fpn_1x_coco.pdparams
# Inference
# Inference
python tools/infer.py
-c
configs/faster_rcnn/faster_rcnn_r50_fpn_1x_coco.yml
--infer_img
=
demo/000000570688.jpg
python tools/infer.py
-c
configs/faster_rcnn/faster_rcnn_r50_fpn_1x_coco.yml
--infer_img
=
demo/000000570688.jpg
-o
weights
=
https://paddledet.bj.bcebos.com/models/faster_rcnn_r50_fpn_1x_coco.pdparams
```
```
### Other argument list
### Other argument list
...
...
docs/tutorials/GETTING_STARTED_cn.md
浏览文件 @
1aa7e2e4
...
@@ -26,9 +26,9 @@ export CUDA_VISIBLE_DEVICES=0,1,2,3,4,5,6,7
...
@@ -26,9 +26,9 @@ export CUDA_VISIBLE_DEVICES=0,1,2,3,4,5,6,7
python
-m
paddle.distributed.launch
--gpus
0,1,2,3,4,5,6,7 tools/train.py
-c
configs/faster_rcnn/faster_rcnn_r50_fpn_1x_coco.yml
python
-m
paddle.distributed.launch
--gpus
0,1,2,3,4,5,6,7 tools/train.py
-c
configs/faster_rcnn/faster_rcnn_r50_fpn_1x_coco.yml
# GPU评估
# GPU评估
export
CUDA_VISIBLE_DEVICES
=
0
export
CUDA_VISIBLE_DEVICES
=
0
python tools/eval.py
-c
configs/faster_rcnn/faster_rcnn_r50_fpn_1x_coco.yml
python tools/eval.py
-c
configs/faster_rcnn/faster_rcnn_r50_fpn_1x_coco.yml
-o
weights
=
https://paddledet.bj.bcebos.com/models/faster_rcnn_r50_fpn_1x_coco.pdparams
# 预测
# 预测
python tools/infer.py
-c
configs/faster_rcnn/faster_rcnn_r50_fpn_1x_coco.yml
--infer_img
=
demo/000000570688.jpg
python tools/infer.py
-c
configs/faster_rcnn/faster_rcnn_r50_fpn_1x_coco.yml
--infer_img
=
demo/000000570688.jpg
-o
weights
=
https://paddledet.bj.bcebos.com/models/faster_rcnn_r50_fpn_1x_coco.pdparams
```
```
...
...
static/ppdet/modeling/tests/test_architectures.py
浏览文件 @
1aa7e2e4
...
@@ -28,9 +28,22 @@ parent_path = os.path.abspath(os.path.join(__file__, *(['..'] * 4)))
...
@@ -28,9 +28,22 @@ parent_path = os.path.abspath(os.path.join(__file__, *(['..'] * 4)))
if
parent_path
not
in
sys
.
path
:
if
parent_path
not
in
sys
.
path
:
sys
.
path
.
append
(
parent_path
)
sys
.
path
.
append
(
parent_path
)
from
ppdet.modeling.tests.decorator_helper
import
prog_scope
try
:
from
ppdet.core.workspace
import
load_config
,
merge_config
,
create
from
ppdet.modeling.tests.decorator_helper
import
prog_scope
from
ppdet.utils.check
import
enable_static_mode
from
ppdet.core.workspace
import
load_config
,
merge_config
,
create
from
ppdet.utils.check
import
enable_static_mode
except
ImportError
as
e
:
if
sys
.
argv
[
0
].
find
(
'static'
)
>=
0
:
logger
.
error
(
"Importing ppdet failed when running static model "
"with error: {}
\n
"
"please try:
\n
"
"
\t
1. run static model under PaddleDetection/static "
"directory
\n
"
"
\t
2. run 'pip uninstall ppdet' to uninstall ppdet "
"dynamic version firstly."
.
format
(
e
))
sys
.
exit
(
-
1
)
else
:
raise
e
class
TestFasterRCNN
(
unittest
.
TestCase
):
class
TestFasterRCNN
(
unittest
.
TestCase
):
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录