Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
PaddleHub
提交
c6553c45
P
PaddleHub
项目概览
PaddlePaddle
/
PaddleHub
1 年多 前同步成功
通知
283
Star
12117
Fork
2091
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
200
列表
看板
标记
里程碑
合并请求
4
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
P
PaddleHub
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
200
Issue
200
列表
看板
标记
里程碑
合并请求
4
合并请求
4
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
c6553c45
编写于
4月 29, 2020
作者:
W
wuzewu
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Fix docs
上级
3acfe6bd
变更
16
隐藏空白更改
内联
并排
Showing
16 changed file
with
63 addition
and
33 deletion
+63
-33
hub_module/modules/image/object_detection/faster_rcnn_resnet50_coco2017/README.md
.../object_detection/faster_rcnn_resnet50_coco2017/README.md
+23
-5
hub_module/modules/image/object_detection/faster_rcnn_resnet50_coco2017/module.py
.../object_detection/faster_rcnn_resnet50_coco2017/module.py
+3
-3
hub_module/modules/image/object_detection/faster_rcnn_resnet50_fpn_coco2017/README.md
...ect_detection/faster_rcnn_resnet50_fpn_coco2017/README.md
+23
-5
hub_module/modules/image/object_detection/faster_rcnn_resnet50_fpn_coco2017/module.py
...ect_detection/faster_rcnn_resnet50_fpn_coco2017/module.py
+3
-3
hub_module/modules/image/object_detection/retinanet_resnet50_fpn_coco2017/module.py
...bject_detection/retinanet_resnet50_fpn_coco2017/module.py
+1
-1
hub_module/modules/image/object_detection/ssd_mobilenet_v1_pascal/module.py
.../image/object_detection/ssd_mobilenet_v1_pascal/module.py
+1
-1
hub_module/modules/image/object_detection/ssd_vgg16_300_coco2017/module.py
...s/image/object_detection/ssd_vgg16_300_coco2017/module.py
+1
-1
hub_module/modules/image/object_detection/ssd_vgg16_512_coco2017/module.py
...s/image/object_detection/ssd_vgg16_512_coco2017/module.py
+1
-1
hub_module/modules/image/object_detection/yolov3_darknet53_coco2017/module.py
...mage/object_detection/yolov3_darknet53_coco2017/module.py
+1
-1
hub_module/modules/image/object_detection/yolov3_darknet53_pedestrian/module.py
...ge/object_detection/yolov3_darknet53_pedestrian/module.py
+1
-1
hub_module/modules/image/object_detection/yolov3_darknet53_vehicles/module.py
...mage/object_detection/yolov3_darknet53_vehicles/module.py
+1
-1
hub_module/modules/image/object_detection/yolov3_mobilenet_v1_coco2017/module.py
...e/object_detection/yolov3_mobilenet_v1_coco2017/module.py
+2
-2
hub_module/modules/image/object_detection/yolov3_resnet34_coco2017/module.py
...image/object_detection/yolov3_resnet34_coco2017/module.py
+2
-2
hub_module/scripts/configs/faster_rcnn.yml
hub_module/scripts/configs/faster_rcnn.yml
+0
-2
hub_module/scripts/configs/ssd.yml
hub_module/scripts/configs/ssd.yml
+0
-2
hub_module/scripts/configs/yolov3.yml
hub_module/scripts/configs/yolov3.yml
+0
-2
未找到文件。
hub_module/modules/image/object_detection/faster_rcnn_resnet50_coco2017/README.md
浏览文件 @
c6553c45
...
...
@@ -17,7 +17,7 @@ def context(num_classes=81,
phase='train')
```
提取
头部
特征,用于迁移学习。
提取特征,用于迁移学习。
**参数**
...
...
@@ -28,10 +28,28 @@ def context(num_classes=81,
**返回**
*
inputs (dict): 模型的输入,keys 包括 'image', 'im
\_
size',相应的取值为:
*
image (Variable): 图像变量
*
im
\_
size (Variable): 图片的尺寸
*
outputs (dict): 模型的输出。如果 get
\_
prediction 为 False,输出 'head
\_
fatures',否则输出 'bbox
\_
out'。
*
inputs (dict): 模型的输入,相应的取值为:
当 phase 为 'train'时,包含:
*
image (Variable): 图像变量
*
im
\_
size (Variable): 图像的尺寸
*
im
\_
info (Variable): 图像缩放信息
*
gt
\_
class (Variable): 检测框类别
*
gt
\_
box (Variable): 检测框坐标
*
is
\_
crowd (Variable):
当 phase 为 'predict'时,包含:
*
image (Variable): 图像变量
*
im
\_
size (Variable): 图像的尺寸
*
im
\_
info (Variable): 图像缩放信息
*
outputs (dict): 模型的输出,相应的取值为:
当 phase 为 'train'时,包含:
*
head_features (Variable): 所提取的特征
*
rpn
\_
cls
\_
loss (Variable): 检测框分类损失
*
rpn
\_
reg
\_
loss (Variable): 检测框回归损失
*
generate
\_
proposal
\_
labels (Variable): 图像信息
当 phase 为 'predict'时,包含:
*
head_features (Variable): 所提取的特征
*
rois (Variable): 提取的roi
*
bbox
\_
out (Variable): 预测结果
*
context
\_
prog (Program): 用于迁移学习的 Program。
```
python
...
...
hub_module/modules/image/object_detection/faster_rcnn_resnet50_coco2017/module.py
浏览文件 @
c6553c45
...
...
@@ -34,7 +34,7 @@ from faster_rcnn_resnet50_coco2017.roi_extractor import RoIAlign
summary
=
"Baidu's Faster R-CNN model for object detection with backbone ResNet50, trained with dataset COCO2017"
,
author
=
"paddlepaddle"
,
author_email
=
""
)
author_email
=
"
paddle-dev@baidu.com
"
)
class
FasterRCNNResNet50
(
hub
.
Module
):
def
_initialize
(
self
):
# default pretrained model, Faster-RCNN with backbone ResNet50, shape of input tensor is [3, 800, 1333]
...
...
@@ -160,7 +160,7 @@ class FasterRCNNResNet50(hub.Module):
'is_crowd'
:
var_prefix
+
is_crowd
.
name
}
outputs
=
{
'head_feat'
:
'head_feat
ures
'
:
var_prefix
+
head_feat
.
name
,
'rpn_cls_loss'
:
var_prefix
+
rpn_loss
[
'rpn_cls_loss'
].
name
,
...
...
@@ -178,7 +178,7 @@ class FasterRCNNResNet50(hub.Module):
'im_shape'
:
var_prefix
+
im_shape
.
name
}
outputs
=
{
'head_feat'
:
var_prefix
+
head_feat
.
name
,
'head_feat
ures
'
:
var_prefix
+
head_feat
.
name
,
'rois'
:
var_prefix
+
rois
.
name
,
'bbox_out'
:
var_prefix
+
pred
.
name
}
...
...
hub_module/modules/image/object_detection/faster_rcnn_resnet50_fpn_coco2017/README.md
浏览文件 @
c6553c45
...
...
@@ -17,7 +17,7 @@ def context(num_classes=81,
phase='train')
```
提取
头部
特征,用于迁移学习。
提取特征,用于迁移学习。
**参数**
...
...
@@ -28,10 +28,28 @@ def context(num_classes=81,
**返回**
*
inputs (dict): 模型的输入,keys 包括 'image', 'im
\_
size',相应的取值为:
*
image (Variable): 图像变量
*
im
\_
size (Variable): 图片的尺寸
*
outputs (dict): 模型的输出。如果 get
\_
prediction 为 False,输出 'head
\_
fatures',否则输出 'bbox
\_
out'。
*
inputs (dict): 模型的输入,相应的取值为:
当 phase 为 'train'时,包含:
*
image (Variable): 图像变量
*
im
\_
size (Variable): 图像的尺寸
*
im
\_
info (Variable): 图像缩放信息
*
gt
\_
class (Variable): 检测框类别
*
gt
\_
box (Variable): 检测框坐标
*
is
\_
crowd (Variable):
当 phase 为 'predict'时,包含:
*
image (Variable): 图像变量
*
im
\_
size (Variable): 图像的尺寸
*
im
\_
info (Variable): 图像缩放信息
*
outputs (dict): 模型的输出,相应的取值为:
当 phase 为 'train'时,包含:
*
head_features (Variable): 所提取的特征
*
rpn
\_
cls
\_
loss (Variable): 检测框分类损失
*
rpn
\_
reg
\_
loss (Variable): 检测框回归损失
*
generate
\_
proposal
\_
labels (Variable): 图像信息
当 phase 为 'predict'时,包含:
*
head_features (Variable): 所提取的特征
*
rois (Variable): 提取的roi
*
bbox
\_
out (Variable): 预测结果
*
context
\_
prog (Program): 用于迁移学习的 Program。
```
python
...
...
hub_module/modules/image/object_detection/faster_rcnn_resnet50_fpn_coco2017/module.py
浏览文件 @
c6553c45
...
...
@@ -35,7 +35,7 @@ from faster_rcnn_resnet50_fpn_coco2017.roi_extractor import FPNRoIAlign
summary
=
"Baidu's Faster-RCNN model for object detection, whose backbone is ResNet50, processed with Feature Pyramid Networks"
,
author
=
"paddlepaddle"
,
author_email
=
""
)
author_email
=
"
paddle-dev@baidu.com
"
)
class
FasterRCNNResNet50RPN
(
hub
.
Module
):
def
_initialize
(
self
):
# default pretrained model, Faster-RCNN with backbone ResNet50, shape of input tensor is [3, 800, 1333]
...
...
@@ -161,7 +161,7 @@ class FasterRCNNResNet50RPN(hub.Module):
'is_crowd'
:
var_prefix
+
is_crowd
.
name
}
outputs
=
{
'head_feat'
:
'head_feat
ures
'
:
var_prefix
+
head_feat
.
name
,
'rpn_cls_loss'
:
var_prefix
+
rpn_loss
[
'rpn_cls_loss'
].
name
,
...
...
@@ -179,7 +179,7 @@ class FasterRCNNResNet50RPN(hub.Module):
'im_shape'
:
var_prefix
+
im_shape
.
name
}
outputs
=
{
'head_feat'
:
var_prefix
+
head_feat
.
name
,
'head_feat
ures
'
:
var_prefix
+
head_feat
.
name
,
'rois'
:
var_prefix
+
rois
.
name
,
'bbox_out'
:
var_prefix
+
pred
.
name
}
...
...
hub_module/modules/image/object_detection/retinanet_resnet50_fpn_coco2017/module.py
浏览文件 @
c6553c45
...
...
@@ -29,7 +29,7 @@ from retinanet_resnet50_fpn_coco2017.resnet import ResNet
summary
=
"Baidu's RetinaNet model for object detection, with backbone ResNet50 and FPN."
,
author
=
"paddlepaddle"
,
author_email
=
""
)
author_email
=
"
paddle-dev@baidu.com
"
)
class
RetinaNetResNet50FPN
(
hub
.
Module
):
def
_initialize
(
self
):
# default pretrained model of Retinanet_ResNet50_FPN, the shape of input image tensor is (3, 608, 608)
...
...
hub_module/modules/image/object_detection/ssd_mobilenet_v1_pascal/module.py
浏览文件 @
c6553c45
...
...
@@ -25,7 +25,7 @@ from ssd_mobilenet_v1_pascal.data_feed import reader
type
=
"cv/object_detection"
,
summary
=
"SSD with backbone MobileNet_V1, trained with dataset Pasecal VOC."
,
author
=
"paddlepaddle"
,
author_email
=
""
)
author_email
=
"
paddle-dev@baidu.com
"
)
class
SSDMobileNetv1
(
hub
.
Module
):
def
_initialize
(
self
):
self
.
default_pretrained_model_path
=
os
.
path
.
join
(
...
...
hub_module/modules/image/object_detection/ssd_vgg16_300_coco2017/module.py
浏览文件 @
c6553c45
...
...
@@ -25,7 +25,7 @@ from ssd_vgg16_300_coco2017.data_feed import reader
type
=
"cv/object_detection"
,
summary
=
"SSD with backbone VGG16, trained with dataset COCO."
,
author
=
"paddlepaddle"
,
author_email
=
""
)
author_email
=
"
paddle-dev@baidu.com
"
)
class
SSDVGG16
(
hub
.
Module
):
def
_initialize
(
self
):
self
.
default_pretrained_model_path
=
os
.
path
.
join
(
...
...
hub_module/modules/image/object_detection/ssd_vgg16_512_coco2017/module.py
浏览文件 @
c6553c45
...
...
@@ -25,7 +25,7 @@ from ssd_vgg16_512_coco2017.data_feed import reader
type
=
"cv/object_detection"
,
summary
=
"SSD with backbone VGG16, trained with dataset COCO."
,
author
=
"paddlepaddle"
,
author_email
=
""
)
author_email
=
"
paddle-dev@baidu.com
"
)
class
SSDVGG16_512
(
hub
.
Module
):
def
_initialize
(
self
):
self
.
default_pretrained_model_path
=
os
.
path
.
join
(
...
...
hub_module/modules/image/object_detection/yolov3_darknet53_coco2017/module.py
浏览文件 @
c6553c45
...
...
@@ -26,7 +26,7 @@ from yolov3_darknet53_coco2017.yolo_head import MultiClassNMS, YOLOv3Head
summary
=
"Baidu's YOLOv3 model for object detection, with backbone DarkNet53, trained with dataset coco2017."
,
author
=
"paddlepaddle"
,
author_email
=
""
)
author_email
=
"
paddle-dev@baidu.com
"
)
class
YOLOv3DarkNet53Coco2017
(
hub
.
Module
):
def
_initialize
(
self
):
self
.
default_pretrained_model_path
=
os
.
path
.
join
(
...
...
hub_module/modules/image/object_detection/yolov3_darknet53_pedestrian/module.py
浏览文件 @
c6553c45
...
...
@@ -26,7 +26,7 @@ from yolov3_darknet53_pedestrian.yolo_head import MultiClassNMS, YOLOv3Head
summary
=
"Baidu's YOLOv3 model for pedestrian detection, with backbone DarkNet53."
,
author
=
"paddlepaddle"
,
author_email
=
""
)
author_email
=
"
paddle-dev@baidu.com
"
)
class
YOLOv3DarkNet53Pedestrian
(
hub
.
Module
):
def
_initialize
(
self
):
self
.
default_pretrained_model_path
=
os
.
path
.
join
(
...
...
hub_module/modules/image/object_detection/yolov3_darknet53_vehicles/module.py
浏览文件 @
c6553c45
...
...
@@ -26,7 +26,7 @@ from yolov3_darknet53_vehicles.yolo_head import MultiClassNMS, YOLOv3Head
summary
=
"Baidu's YOLOv3 model for vehicles detection, with backbone DarkNet53."
,
author
=
"paddlepaddle"
,
author_email
=
""
)
author_email
=
"
paddle-dev@baidu.com
"
)
class
YOLOv3DarkNet53Vehicles
(
hub
.
Module
):
def
_initialize
(
self
):
self
.
default_pretrained_model_path
=
os
.
path
.
join
(
...
...
hub_module/modules/image/object_detection/yolov3_mobilenet_v1_coco2017/module.py
浏览文件 @
c6553c45
...
...
@@ -21,12 +21,12 @@ from yolov3_mobilenet_v1_coco2017.yolo_head import MultiClassNMS, YOLOv3Head
@
moduleinfo
(
name
=
"yolov3_mobilenet_v1_coco2017"
,
version
=
"1.
1
.0"
,
version
=
"1.
0
.0"
,
type
=
"CV/object_detection"
,
summary
=
"Baidu's YOLOv3 model for object detection with backbone MobileNet_V1, trained with dataset COCO2017."
,
author
=
"paddlepaddle"
,
author_email
=
""
)
author_email
=
"
paddle-dev@baidu.com
"
)
class
YOLOv3MobileNetV1Coco2017
(
hub
.
Module
):
def
_initialize
(
self
):
self
.
default_pretrained_model_path
=
os
.
path
.
join
(
...
...
hub_module/modules/image/object_detection/yolov3_resnet34_coco2017/module.py
浏览文件 @
c6553c45
...
...
@@ -21,12 +21,12 @@ from yolov3_resnet34_coco2017.yolo_head import MultiClassNMS, YOLOv3Head
@
moduleinfo
(
name
=
"yolov3_resnet34_coco2017"
,
version
=
"1.
1
.0"
,
version
=
"1.
0
.0"
,
type
=
"CV/object_detection"
,
summary
=
"Baidu's YOLOv3 model for object detection with backbone ResNet34, trained with dataset coco2017."
,
author
=
"paddlepaddle"
,
author_email
=
""
)
author_email
=
"
paddle-dev@baidu.com
"
)
class
YOLOv3DarkNet53Coco2017
(
hub
.
Module
):
def
_initialize
(
self
):
self
.
default_pretrained_model_path
=
os
.
path
.
join
(
...
...
hub_module/scripts/configs/faster_rcnn.yml
已删除
100644 → 0
浏览文件 @
3acfe6bd
name
:
faster_rcnn
dir
:
"
modules/image/object_detection/faster_rcnn"
hub_module/scripts/configs/ssd.yml
已删除
100644 → 0
浏览文件 @
3acfe6bd
name
:
ssd
dir
:
"
modules/image/object_detection/ssd"
hub_module/scripts/configs/yolov3.yml
已删除
100644 → 0
浏览文件 @
3acfe6bd
name
:
yolov3
dir
:
"
modules/image/object_detection/yolov3"
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录