Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
s920243400
PaddleDetection
提交
5792f346
P
PaddleDetection
项目概览
s920243400
/
PaddleDetection
与 Fork 源项目一致
Fork自
PaddlePaddle / PaddleDetection
通知
2
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
P
PaddleDetection
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
5792f346
编写于
10月 18, 2019
作者:
K
Kaipeng Deng
提交者:
GitHub
10月 18, 2019
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
remove actual_shape in resize_nearest and use_progam_cache in yolov3/infer.py (#3617)
* remove actual_shape * add fpn fix
上级
b1ef0310
变更
2
显示空白变更内容
内联
并排
Showing
2 changed file
with
2 addition
and
17 deletion
+2
-17
ppdet/modeling/anchor_heads/yolo_head.py
ppdet/modeling/anchor_heads/yolo_head.py
+1
-11
ppdet/modeling/backbones/fpn.py
ppdet/modeling/backbones/fpn.py
+1
-6
未找到文件。
ppdet/modeling/anchor_heads/yolo_head.py
浏览文件 @
5792f346
...
@@ -148,18 +148,8 @@ class YOLOv3Head(object):
...
@@ -148,18 +148,8 @@ class YOLOv3Head(object):
return
route
,
tip
return
route
,
tip
def
_upsample
(
self
,
input
,
scale
=
2
,
name
=
None
):
def
_upsample
(
self
,
input
,
scale
=
2
,
name
=
None
):
# get dynamic upsample output shape
shape_nchw
=
fluid
.
layers
.
shape
(
input
)
shape_hw
=
fluid
.
layers
.
slice
(
shape_nchw
,
axes
=
[
0
],
starts
=
[
2
],
ends
=
[
4
])
shape_hw
.
stop_gradient
=
True
in_shape
=
fluid
.
layers
.
cast
(
shape_hw
,
dtype
=
'int32'
)
out_shape
=
in_shape
*
scale
out_shape
.
stop_gradient
=
True
# reisze by actual_shape
out
=
fluid
.
layers
.
resize_nearest
(
out
=
fluid
.
layers
.
resize_nearest
(
input
=
input
,
scale
=
scale
,
actual_shape
=
out_shape
,
name
=
name
)
input
=
input
,
scale
=
float
(
scale
)
,
name
=
name
)
return
out
return
out
def
_parse_anchors
(
self
,
anchors
):
def
_parse_anchors
(
self
,
anchors
):
...
...
ppdet/modeling/backbones/fpn.py
浏览文件 @
5792f346
...
@@ -87,13 +87,8 @@ class FPN(object):
...
@@ -87,13 +87,8 @@ class FPN(object):
learning_rate
=
2.
,
learning_rate
=
2.
,
regularizer
=
L2Decay
(
0.
)),
regularizer
=
L2Decay
(
0.
)),
name
=
lateral_name
)
name
=
lateral_name
)
shape
=
fluid
.
layers
.
shape
(
upper_output
)
shape_hw
=
fluid
.
layers
.
slice
(
shape
,
axes
=
[
0
],
starts
=
[
2
],
ends
=
[
4
])
out_shape_
=
shape_hw
*
2
out_shape
=
fluid
.
layers
.
cast
(
out_shape_
,
dtype
=
'int32'
)
out_shape
.
stop_gradient
=
True
topdown
=
fluid
.
layers
.
resize_nearest
(
topdown
=
fluid
.
layers
.
resize_nearest
(
upper_output
,
scale
=
2.
,
actual_shape
=
out_shape
,
name
=
topdown_name
)
upper_output
,
scale
=
2.
,
name
=
topdown_name
)
return
lateral
+
topdown
return
lateral
+
topdown
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录