Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
models
提交
eb1fbf5c
M
models
项目概览
PaddlePaddle
/
models
1 年多 前同步成功
通知
222
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看板
提交
eb1fbf5c
编写于
8月 30, 2019
作者:
L
LielinJiang
提交者:
qingqing01
8月 30, 2019
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Fix deeplabv3p eval bug on windows platform (#3235)
上级
21e406db
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
3 addition
and
2 deletion
+3
-2
PaddleCV/deeplabv3+/README.md
PaddleCV/deeplabv3+/README.md
+1
-1
PaddleCV/deeplabv3+/eval.py
PaddleCV/deeplabv3+/eval.py
+2
-1
未找到文件。
PaddleCV/deeplabv3+/README.md
浏览文件 @
eb1fbf5c
...
...
@@ -65,7 +65,7 @@ python ./train.py \
--save_weights_path=$SAVE_WEIGHTS_PATH \
--dataset_path=$DATASET_PATH
```
注意:如果在windows系统上进行训练请不要将use_multiprocessing设置为True
注意:如果在windows系统上进行训练
,预测
请不要将use_multiprocessing设置为True
使用以下命令获得更多使用说明:
```
...
...
PaddleCV/deeplabv3+/eval.py
浏览文件 @
eb1fbf5c
...
...
@@ -39,6 +39,7 @@ add_arg('dataset_path', str, None, "Cityscape dataset path.")
add_arg
(
'use_gpu'
,
bool
,
True
,
"Whether use GPU or CPU."
)
add_arg
(
'num_classes'
,
int
,
19
,
"Number of classes."
)
add_arg
(
'use_py_reader'
,
bool
,
True
,
"Use py_reader."
)
add_arg
(
'use_multiprocessing'
,
bool
,
False
,
"Use multiprocessing."
)
add_arg
(
'norm_type'
,
str
,
'bn'
,
"Normalization type, should be 'bn' or 'gn'."
)
#yapf: enable
...
...
@@ -124,7 +125,7 @@ if args.total_step == -1:
else
:
total_step
=
args
.
total_step
batches
=
dataset
.
get_batch_generator
(
batch_size
,
total_step
)
batches
=
dataset
.
get_batch_generator
(
batch_size
,
total_step
,
use_multiprocessing
=
args
.
use_multiprocessing
)
if
args
.
use_py_reader
:
py_reader
.
decorate_tensor_provider
(
lambda
:[
(
yield
b
[
0
],
b
[
1
])
for
b
in
batches
])
py_reader
.
start
()
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录