Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
models
提交
53fbde83
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看板
未验证
提交
53fbde83
编写于
8月 15, 2018
作者:
B
Bai Yifan
提交者:
GitHub
8月 15, 2018
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Refine face_detection doc (#1092)
* refine doc
上级
c34bb5f1
变更
5
显示空白变更内容
内联
并排
Showing
5 changed file
with
20 addition
and
2 deletion
+20
-2
fluid/face_detection/README_cn.md
fluid/face_detection/README_cn.md
+20
-2
fluid/face_detection/images/0_Parade_marchingband_1_356.jpg
fluid/face_detection/images/0_Parade_marchingband_1_356.jpg
+0
-0
fluid/face_detection/images/28_Sports_Fan_Sports_Fan_28_770.jpg
...face_detection/images/28_Sports_Fan_Sports_Fan_28_770.jpg
+0
-0
fluid/face_detection/images/2_Demonstration_Demonstration_Or_Protest_2_58.jpg
.../images/2_Demonstration_Demonstration_Or_Protest_2_58.jpg
+0
-0
fluid/face_detection/images/4_Dancing_Dancing_4_194.jpg
fluid/face_detection/images/4_Dancing_Dancing_4_194.jpg
+0
-0
未找到文件。
fluid/face_detection/README_cn.md
浏览文件 @
53fbde83
...
@@ -93,13 +93,14 @@ tar -xf vgg_ilsvrc_16_fc_reduced.tar.gz && rm -f vgg_ilsvrc_16_fc_reduced.tar.gz
...
@@ -93,13 +93,14 @@ tar -xf vgg_ilsvrc_16_fc_reduced.tar.gz && rm -f vgg_ilsvrc_16_fc_reduced.tar.gz
`train.py`
是训练模块的主要执行程序,调用示例如下:
`train.py`
是训练模块的主要执行程序,调用示例如下:
```
bash
```
bash
python
-u
train.py
--batch_size
=
1
2
--pretrained_model
=
vgg_ilsvrc_16_fc_reduced
python
-u
train.py
--batch_size
=
1
6
--pretrained_model
=
vgg_ilsvrc_16_fc_reduced
```
```
-
可以通过设置
`export CUDA_VISIBLE_DEVICES=0,1,2,3`
指定想要使用的GPU数量。
-
可以通过设置
`export CUDA_VISIBLE_DEVICES=0,1,2,3`
指定想要使用的GPU数量
,
`batch_size`
默认设置为12或16
。
-
更多的可选参数见:
-
更多的可选参数见:
```
bash
```
bash
python train.py
--help
python train.py
--help
```
```
-
模型训练150轮以上可以收敛。用Nvidia Tesla P40 GPU 4卡并行,
`batch_size=16`
的配置,每轮训练大约40分钟,总共训练时长大约100小时
模型训练所采用的数据增强:
模型训练所采用的数据增强:
...
@@ -152,8 +153,25 @@ python -u train.py --batch_size=12 --pretrained_model=vgg_ilsvrc_16_fc_reduced
...
@@ -152,8 +153,25 @@ python -u train.py --batch_size=12 --pretrained_model=vgg_ilsvrc_16_fc_reduced
```
bash
```
bash
matlab
-nodesktop
-nosplash
-nojvm
-r
"run wider_eval.m;quit;"
matlab
-nodesktop
-nosplash
-nojvm
-r
"run wider_eval.m;quit;"
```
```
### 模型预测以及可视化
`widerface_eval.py`
也可以用来做预测及可视化,调用示例如下:
```
bash
python widerface_eval.py
--infer
=
True
--confs_threshold
=
0.15
--model_dir
=
output/159/
--image_path
=
data/WIDER_train/images/0--Parade/0_Parade_marchingband_1_219.jpg
```
下图可视化了模型的预测结果:
<p
align=
"center"
>
<img
src=
"images/0_Parade_marchingband_1_356.jpg"
height=
300
width=
400
hspace=
'10'
/>
<img
src=
"images/28_Sports_Fan_Sports_Fan_28_770.jpg"
height=
300
width=
400
hspace=
'10'
/>
<img
src=
"images/4_Dancing_Dancing_4_194.jpg"
height=
300
width=
400
hspace=
'10'
/>
<img
src=
"images/2_Demonstration_Demonstration_Or_Protest_2_58.jpg"
height=
300
width=
400
hspace=
'10'
/>
<br
/>
Pyramidbox 预测可视化
</p>
### 模型发布
### 模型发布
...
...
fluid/face_detection/images/0_Parade_marchingband_1_356.jpg
0 → 100644
浏览文件 @
53fbde83
1.7 MB
fluid/face_detection/images/28_Sports_Fan_Sports_Fan_28_770.jpg
0 → 100644
浏览文件 @
53fbde83
74.0 KB
fluid/face_detection/images/2_Demonstration_Demonstration_Or_Protest_2_58.jpg
0 → 100644
浏览文件 @
53fbde83
178.0 KB
fluid/face_detection/images/4_Dancing_Dancing_4_194.jpg
0 → 100644
浏览文件 @
53fbde83
60.0 KB
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录