Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
机器未来
Paddle
提交
85e1f215
P
Paddle
项目概览
机器未来
/
Paddle
与 Fork 源项目一致
Fork自
PaddlePaddle / Paddle
通知
1
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
1
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
P
Paddle
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
1
Issue
1
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
85e1f215
编写于
10月 14, 2019
作者:
B
bingyanghuang
提交者:
Tao Luo
10月 14, 2019
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Modify the helper information in full_pascalvoc_test_preprocess.py (#20475)
上级
f76a32df
变更
1
显示空白变更内容
内联
并排
Showing
1 changed file
with
26 addition
and
9 deletion
+26
-9
paddle/fluid/inference/tests/api/full_pascalvoc_test_preprocess.py
...uid/inference/tests/api/full_pascalvoc_test_preprocess.py
+26
-9
未找到文件。
paddle/fluid/inference/tests/api/full_pascalvoc_test_preprocess.py
浏览文件 @
85e1f215
...
...
@@ -265,36 +265,53 @@ def run_convert():
def
main_pascalvoc_preprocess
(
args
):
parser
=
argparse
.
ArgumentParser
(
description
=
"Convert the full pascalvoc val set or local data to binary file."
)
description
=
"Convert the full pascalvoc val set or local data to binary file."
,
usage
=
None
,
add_help
=
True
)
parser
.
add_argument
(
'--choice'
,
choices
=
[
'local'
,
'VOC_test_2007'
],
required
=
True
)
parser
.
add_argument
(
"--data_dir"
,
default
=
"
/home/li/AIPG-Paddle/paddle/build
/third_party/inference_demo/int8v2/pascalvoc_small"
,
default
=
"
.
/third_party/inference_demo/int8v2/pascalvoc_small"
,
type
=
str
,
help
=
"Dataset root directory"
)
parser
.
add_argument
(
"--img_annotation_list"
,
type
=
str
,
default
=
"test_100.txt"
,
help
=
"A file containing the image file path and
relevant
annotation file path"
help
=
"A file containing the image file path and
corresponding
annotation file path"
)
parser
.
add_argument
(
"--label_file"
,
type
=
str
,
default
=
"label_list"
,
help
=
"List
the labels in the
same sequence as denoted in the annotation file"
help
=
"List
of object labels with
same sequence as denoted in the annotation file"
)
parser
.
add_argument
(
"--output_file"
,
type
=
str
,
default
=
"pascalvoc_small.bin"
,
help
=
"File path of the output binary file"
)
parser
.
add_argument
(
"--resize_h"
,
type
=
int
,
default
=
RESIZE_H
)
parser
.
add_argument
(
"--resize_w"
,
type
=
int
,
default
=
RESIZE_W
)
parser
.
add_argument
(
"--mean_value"
,
type
=
str
,
default
=
MEAN_VALUE
)
parser
.
add_argument
(
"--ap_version"
,
type
=
str
,
default
=
AP_VERSION
)
parser
.
add_argument
(
"--resize_h"
,
type
=
int
,
default
=
RESIZE_H
,
help
=
"Image preprocess with resize_h"
)
parser
.
add_argument
(
"--resize_w"
,
type
=
int
,
default
=
RESIZE_W
,
help
=
"Image prerocess with resize_w"
)
parser
.
add_argument
(
"--mean_value"
,
type
=
str
,
default
=
MEAN_VALUE
,
help
=
"Image preprocess with mean_value"
)
parser
.
add_argument
(
"--ap_version"
,
type
=
str
,
default
=
AP_VERSION
,
help
=
"Image preprocess with ap_version"
)
args
=
parser
.
parse_args
()
if
args
.
choice
==
'local'
:
convert_pascalvoc_local2bin
(
args
)
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录