Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
models
提交
db713042
M
models
项目概览
PaddlePaddle
/
models
大约 2 年 前同步成功
通知
232
Star
6828
Fork
2962
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
602
列表
看板
标记
里程碑
合并请求
255
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
M
models
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
602
Issue
602
列表
看板
标记
里程碑
合并请求
255
合并请求
255
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
未验证
提交
db713042
编写于
12月 24, 2019
作者:
K
Kaipeng Deng
提交者:
GitHub
12月 24, 2019
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
update README and fix random nan in rcnn startup (#4118)
上级
8cad30f0
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
17 addition
and
11 deletion
+17
-11
PaddleCV/Paddle3D/PointRCNN/README.md
PaddleCV/Paddle3D/PointRCNN/README.md
+9
-9
PaddleCV/Paddle3D/PointRCNN/models/pointnet2_modules.py
PaddleCV/Paddle3D/PointRCNN/models/pointnet2_modules.py
+8
-2
未找到文件。
PaddleCV/Paddle3D/PointRCNN/README.md
浏览文件 @
db713042
...
...
@@ -51,14 +51,7 @@ cd PaddleCV/Paddle3D/PointRCNN
git clone https://github.com/pybind/pybind11
```
3.
编译安装
`pts_utils`
,
`kitti_utils`
,
`roipool3d_utils`
,
`iou_utils`
等模块
使用如下命令编译安装
`pts_utils`
,
`kitti_utils`
,
`roipool3d_utils`
,
`iou_utils`
等模块:
```
sh build_and_install.sh
```
4.
安装python依赖库
3.
安装python依赖库
使用如下命令安装python依赖库:
...
...
@@ -69,6 +62,13 @@ pip install -r requirement.txt
**注意:**
KITTI mAP评估工具只能在python 3.6及以上版本中使用,且python3环境中需要安装
`scikit-image`
,
`Numba`
,
`fire`
等子库。
`requirement.txt`
中的
`scikit-image`
,
`Numba`
,
`fire`
即为KITTI mAP评估工具所需依赖库。
4.
编译安装
`pts_utils`
,
`kitti_utils`
,
`roipool3d_utils`
,
`iou_utils`
等模块
使用如下命令编译安装
`pts_utils`
,
`kitti_utils`
,
`roipool3d_utils`
,
`iou_utils`
等模块:
```
sh build_and_install.sh
```
### 编译自定义OP
请确认Paddle版本为PaddelPaddle Fluid develop每日版本或基于Paddle develop分支源码编译安装,
**推荐使用源码编译安装的方式**
。
...
...
@@ -314,7 +314,7 @@ result_dir
由于KITTI mAP仅支持python 3.6及以上版本,须使用对应python版本通过如下命令进行评估:
```
python3
kitti_map
.py
python3
tools/kitti_eval
.py
```
使用训练最终权重
[
RPN模型
](
https://paddlemodels.bj.bcebos.com/Paddle3D/pointrcnn_rpn.tar
)
和
[
RCNN模型
](
https://paddlemodels.bj.bcebos.com/Paddle3D/pointrcnn_rcnn_offline.tar
)
评估结果如下所示:
...
...
PaddleCV/Paddle3D/PointRCNN/models/pointnet2_modules.py
浏览文件 @
db713042
...
...
@@ -23,7 +23,7 @@ import numpy as np
import
paddle.fluid
as
fluid
from
paddle.fluid.param_attr
import
ParamAttr
from
paddle.fluid.initializer
import
Constant
from
paddle.fluid.initializer
import
Constant
,
Normal
from
ext_op
import
*
__all__
=
[
"conv_bn"
,
"pointnet_sa_module"
,
"pointnet_fp_module"
,
"MLP"
]
...
...
@@ -76,7 +76,13 @@ def group_all(xyz, features=None, use_xyz=True):
def
conv_bn
(
input
,
out_channels
,
bn
=
True
,
bn_momentum
=
0.95
,
act
=
'relu'
,
name
=
None
):
param_attr
=
ParamAttr
(
name
=
'{}_conv_weight'
.
format
(
name
),)
def
_get_kaiming_init
():
fan_in
=
input
.
shape
[
1
]
std
=
(
1.0
/
fan_in
/
3.0
)
**
0.5
return
Normal
(
0.
,
std
,
0.
)
param_attr
=
ParamAttr
(
name
=
'{}_conv_weight'
.
format
(
name
),
initializer
=
_get_kaiming_init
())
bias_attr
=
ParamAttr
(
name
=
'{}_conv_bias'
.
format
(
name
))
\
if
not
bn
else
False
out
=
fluid
.
layers
.
conv2d
(
input
,
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录