Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
PaddleHub
提交
01dc7125
P
PaddleHub
项目概览
PaddlePaddle
/
PaddleHub
大约 1 年 前同步成功
通知
282
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看板
提交
01dc7125
编写于
6月 02, 2020
作者:
W
wuzewu
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Update detection module
上级
269e97d1
变更
15
显示空白变更内容
内联
并排
Showing
15 changed file
with
37 addition
and
30 deletion
+37
-30
hub_module/modules/image/face_detection/pyramidbox_lite_mobile/module.py
...les/image/face_detection/pyramidbox_lite_mobile/module.py
+4
-0
hub_module/modules/image/face_detection/pyramidbox_lite_mobile_mask/module.py
...mage/face_detection/pyramidbox_lite_mobile_mask/module.py
+1
-0
hub_module/modules/image/face_detection/pyramidbox_lite_mobile_mask/processor.py
...e/face_detection/pyramidbox_lite_mobile_mask/processor.py
+6
-6
hub_module/modules/image/face_detection/pyramidbox_lite_server/module.py
...les/image/face_detection/pyramidbox_lite_server/module.py
+1
-0
hub_module/modules/image/face_detection/pyramidbox_lite_server_mask/module.py
...mage/face_detection/pyramidbox_lite_server_mask/module.py
+1
-0
hub_module/modules/image/face_detection/pyramidbox_lite_server_mask/processor.py
...e/face_detection/pyramidbox_lite_server_mask/processor.py
+6
-6
hub_module/modules/image/object_detection/ssd_mobilenet_v1_pascal/module.py
.../image/object_detection/ssd_mobilenet_v1_pascal/module.py
+2
-2
hub_module/modules/image/object_detection/ssd_vgg16_300_coco2017/module.py
...s/image/object_detection/ssd_vgg16_300_coco2017/module.py
+2
-2
hub_module/modules/image/object_detection/ssd_vgg16_512_coco2017/module.py
...s/image/object_detection/ssd_vgg16_512_coco2017/module.py
+2
-2
hub_module/modules/image/object_detection/yolov3_darknet53_coco2017/module.py
...mage/object_detection/yolov3_darknet53_coco2017/module.py
+2
-2
hub_module/modules/image/object_detection/yolov3_darknet53_pedestrian/module.py
...ge/object_detection/yolov3_darknet53_pedestrian/module.py
+2
-2
hub_module/modules/image/object_detection/yolov3_darknet53_vehicles/module.py
...mage/object_detection/yolov3_darknet53_vehicles/module.py
+2
-2
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/modules/image/object_detection/yolov3_resnet50_vd_coco2017/module.py
...ge/object_detection/yolov3_resnet50_vd_coco2017/module.py
+2
-2
未找到文件。
hub_module/modules/image/face_detection/pyramidbox_lite_mobile/module.py
浏览文件 @
01dc7125
...
...
@@ -28,6 +28,7 @@ class PyramidBoxLiteMobile(hub.Module):
self
.
default_pretrained_model_path
=
os
.
path
.
join
(
self
.
directory
,
"pyramidbox_lite_mobile_face_detection"
)
self
.
_set_config
()
self
.
processor
=
self
def
_set_config
(
self
):
"""
...
...
@@ -130,6 +131,9 @@ class PyramidBoxLiteMobile(hub.Module):
program
,
feeded_var_names
,
target_vars
=
fluid
.
io
.
load_inference_model
(
dirname
=
self
.
default_pretrained_model_path
,
executor
=
exe
)
var
=
program
.
global_block
().
vars
[
'detection_output_0.tmp_1'
]
var
.
desc
.
set_dtype
(
fluid
.
core
.
VarDesc
.
VarType
.
INT32
)
fluid
.
io
.
save_inference_model
(
dirname
=
dirname
,
main_program
=
program
,
...
...
hub_module/modules/image/face_detection/pyramidbox_lite_mobile_mask/module.py
浏览文件 @
01dc7125
...
...
@@ -37,6 +37,7 @@ class PyramidBoxLiteMobileMask(hub.Module):
else
:
self
.
face_detector
=
face_detector_module
self
.
_set_config
()
self
.
processor
=
self
def
_set_config
(
self
):
"""
...
...
hub_module/modules/image/face_detection/pyramidbox_lite_mobile_mask/processor.py
浏览文件 @
01dc7125
hub_module/modules/image/face_detection/pyramidbox_lite_server/module.py
浏览文件 @
01dc7125
...
...
@@ -28,6 +28,7 @@ class PyramidBoxLiteServer(hub.Module):
self
.
default_pretrained_model_path
=
os
.
path
.
join
(
self
.
directory
,
"pyramidbox_lite_server_face_detection"
)
self
.
_set_config
()
self
.
processor
=
self
def
_set_config
(
self
):
"""
...
...
hub_module/modules/image/face_detection/pyramidbox_lite_server_mask/module.py
浏览文件 @
01dc7125
...
...
@@ -37,6 +37,7 @@ class PyramidBoxLiteServerMask(hub.Module):
else
:
self
.
face_detector
=
face_detector_module
self
.
_set_config
()
self
.
processor
=
self
def
_set_config
(
self
):
"""
...
...
hub_module/modules/image/face_detection/pyramidbox_lite_server_mask/processor.py
浏览文件 @
01dc7125
hub_module/modules/image/object_detection/ssd_mobilenet_v1_pascal/module.py
浏览文件 @
01dc7125
...
...
@@ -21,7 +21,7 @@ from ssd_mobilenet_v1_pascal.data_feed import reader
@
moduleinfo
(
name
=
"ssd_mobilenet_v1_pascal"
,
version
=
"1.1.
0
"
,
version
=
"1.1.
1
"
,
type
=
"cv/object_detection"
,
summary
=
"SSD with backbone MobileNet_V1, trained with dataset Pasecal VOC."
,
author
=
"paddlepaddle"
,
...
...
@@ -275,7 +275,7 @@ class SSDMobileNetv1(hub.Module):
self
.
add_module_config_arg
()
self
.
add_module_input_arg
()
args
=
self
.
parser
.
parse_args
(
argvs
)
results
=
self
.
face
_detection
(
results
=
self
.
object
_detection
(
paths
=
[
args
.
input_path
],
batch_size
=
args
.
batch_size
,
use_gpu
=
args
.
use_gpu
,
...
...
hub_module/modules/image/object_detection/ssd_vgg16_300_coco2017/module.py
浏览文件 @
01dc7125
...
...
@@ -21,7 +21,7 @@ from ssd_vgg16_300_coco2017.data_feed import reader
@
moduleinfo
(
name
=
"ssd_vgg16_300_coco2017"
,
version
=
"1.0.
0
"
,
version
=
"1.0.
1
"
,
type
=
"cv/object_detection"
,
summary
=
"SSD with backbone VGG16, trained with dataset COCO."
,
author
=
"paddlepaddle"
,
...
...
@@ -264,7 +264,7 @@ class SSDVGG16(hub.Module):
self
.
add_module_config_arg
()
self
.
add_module_input_arg
()
args
=
self
.
parser
.
parse_args
(
argvs
)
results
=
self
.
face
_detection
(
results
=
self
.
object
_detection
(
paths
=
[
args
.
input_path
],
batch_size
=
args
.
batch_size
,
use_gpu
=
args
.
use_gpu
,
...
...
hub_module/modules/image/object_detection/ssd_vgg16_512_coco2017/module.py
浏览文件 @
01dc7125
...
...
@@ -21,7 +21,7 @@ from ssd_vgg16_512_coco2017.data_feed import reader
@
moduleinfo
(
name
=
"ssd_vgg16_512_coco2017"
,
version
=
"1.0.
0
"
,
version
=
"1.0.
1
"
,
type
=
"cv/object_detection"
,
summary
=
"SSD with backbone VGG16, trained with dataset COCO."
,
author
=
"paddlepaddle"
,
...
...
@@ -278,7 +278,7 @@ class SSDVGG16_512(hub.Module):
self
.
add_module_config_arg
()
self
.
add_module_input_arg
()
args
=
self
.
parser
.
parse_args
(
argvs
)
results
=
self
.
face
_detection
(
results
=
self
.
object
_detection
(
paths
=
[
args
.
input_path
],
batch_size
=
args
.
batch_size
,
use_gpu
=
args
.
use_gpu
,
...
...
hub_module/modules/image/object_detection/yolov3_darknet53_coco2017/module.py
浏览文件 @
01dc7125
...
...
@@ -21,7 +21,7 @@ from yolov3_darknet53_coco2017.yolo_head import MultiClassNMS, YOLOv3Head
@
moduleinfo
(
name
=
"yolov3_darknet53_coco2017"
,
version
=
"1.1.
0
"
,
version
=
"1.1.
1
"
,
type
=
"CV/object_detection"
,
summary
=
"Baidu's YOLOv3 model for object detection, with backbone DarkNet53, trained with dataset coco2017."
,
...
...
@@ -270,7 +270,7 @@ class YOLOv3DarkNet53Coco2017(hub.Module):
self
.
add_module_config_arg
()
self
.
add_module_input_arg
()
args
=
self
.
parser
.
parse_args
(
argvs
)
results
=
self
.
face
_detection
(
results
=
self
.
object
_detection
(
paths
=
[
args
.
input_path
],
batch_size
=
args
.
batch_size
,
use_gpu
=
args
.
use_gpu
,
...
...
hub_module/modules/image/object_detection/yolov3_darknet53_pedestrian/module.py
浏览文件 @
01dc7125
...
...
@@ -21,7 +21,7 @@ from yolov3_darknet53_pedestrian.yolo_head import MultiClassNMS, YOLOv3Head
@
moduleinfo
(
name
=
"yolov3_darknet53_pedestrian"
,
version
=
"1.0.
0
"
,
version
=
"1.0.
1
"
,
type
=
"CV/object_detection"
,
summary
=
"Baidu's YOLOv3 model for pedestrian detection, with backbone DarkNet53."
,
...
...
@@ -280,7 +280,7 @@ class YOLOv3DarkNet53Pedestrian(hub.Module):
self
.
add_module_config_arg
()
self
.
add_module_input_arg
()
args
=
self
.
parser
.
parse_args
(
argvs
)
results
=
self
.
face
_detection
(
results
=
self
.
object
_detection
(
paths
=
[
args
.
input_path
],
batch_size
=
args
.
batch_size
,
use_gpu
=
args
.
use_gpu
,
...
...
hub_module/modules/image/object_detection/yolov3_darknet53_vehicles/module.py
浏览文件 @
01dc7125
...
...
@@ -21,7 +21,7 @@ from yolov3_darknet53_vehicles.yolo_head import MultiClassNMS, YOLOv3Head
@
moduleinfo
(
name
=
"yolov3_darknet53_vehicles"
,
version
=
"1.0.
0
"
,
version
=
"1.0.
1
"
,
type
=
"CV/object_detection"
,
summary
=
"Baidu's YOLOv3 model for vehicles detection, with backbone DarkNet53."
,
...
...
@@ -280,7 +280,7 @@ class YOLOv3DarkNet53Vehicles(hub.Module):
self
.
add_module_config_arg
()
self
.
add_module_input_arg
()
args
=
self
.
parser
.
parse_args
(
argvs
)
results
=
self
.
face
_detection
(
results
=
self
.
object
_detection
(
paths
=
[
args
.
input_path
],
batch_size
=
args
.
batch_size
,
use_gpu
=
args
.
use_gpu
,
...
...
hub_module/modules/image/object_detection/yolov3_mobilenet_v1_coco2017/module.py
浏览文件 @
01dc7125
...
...
@@ -21,7 +21,7 @@ from yolov3_mobilenet_v1_coco2017.yolo_head import MultiClassNMS, YOLOv3Head
@
moduleinfo
(
name
=
"yolov3_mobilenet_v1_coco2017"
,
version
=
"1.0.
0
"
,
version
=
"1.0.
1
"
,
type
=
"CV/object_detection"
,
summary
=
"Baidu's YOLOv3 model for object detection with backbone MobileNet_V1, trained with dataset COCO2017."
,
...
...
@@ -270,7 +270,7 @@ class YOLOv3MobileNetV1Coco2017(hub.Module):
self
.
add_module_config_arg
()
self
.
add_module_input_arg
()
args
=
self
.
parser
.
parse_args
(
argvs
)
results
=
self
.
face
_detection
(
results
=
self
.
object
_detection
(
paths
=
[
args
.
input_path
],
batch_size
=
args
.
batch_size
,
use_gpu
=
args
.
use_gpu
,
...
...
hub_module/modules/image/object_detection/yolov3_resnet34_coco2017/module.py
浏览文件 @
01dc7125
...
...
@@ -21,7 +21,7 @@ from yolov3_resnet34_coco2017.yolo_head import MultiClassNMS, YOLOv3Head
@
moduleinfo
(
name
=
"yolov3_resnet34_coco2017"
,
version
=
"1.0.
0
"
,
version
=
"1.0.
1
"
,
type
=
"CV/object_detection"
,
summary
=
"Baidu's YOLOv3 model for object detection with backbone ResNet34, trained with dataset coco2017."
,
...
...
@@ -272,7 +272,7 @@ class YOLOv3ResNet34Coco2017(hub.Module):
self
.
add_module_config_arg
()
self
.
add_module_input_arg
()
args
=
self
.
parser
.
parse_args
(
argvs
)
results
=
self
.
face
_detection
(
results
=
self
.
object
_detection
(
paths
=
[
args
.
input_path
],
batch_size
=
args
.
batch_size
,
use_gpu
=
args
.
use_gpu
,
...
...
hub_module/modules/image/object_detection/yolov3_resnet50_vd_coco2017/module.py
浏览文件 @
01dc7125
...
...
@@ -21,7 +21,7 @@ from yolov3_resnet50_vd_coco2017.yolo_head import MultiClassNMS, YOLOv3Head
@
moduleinfo
(
name
=
"yolov3_resnet50_vd_coco2017"
,
version
=
"1.0.
0
"
,
version
=
"1.0.
1
"
,
type
=
"CV/object_detection"
,
summary
=
"Baidu's YOLOv3 model for object detection with backbone ResNet50, trained with dataset coco2017."
,
...
...
@@ -274,7 +274,7 @@ class YOLOv3ResNet50Coco2017(hub.Module):
self
.
add_module_config_arg
()
self
.
add_module_input_arg
()
args
=
self
.
parser
.
parse_args
(
argvs
)
results
=
self
.
face
_detection
(
results
=
self
.
object
_detection
(
paths
=
[
args
.
input_path
],
batch_size
=
args
.
batch_size
,
use_gpu
=
args
.
use_gpu
,
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录