Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
s920243400
PaddleDetection
提交
da0e1eed
P
PaddleDetection
项目概览
s920243400
/
PaddleDetection
与 Fork 源项目一致
Fork自
PaddlePaddle / PaddleDetection
通知
2
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
P
PaddleDetection
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
未验证
提交
da0e1eed
编写于
2月 02, 2021
作者:
Y
yiyinggang
提交者:
GitHub
2月 02, 2021
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Fix bug when executing eval.py with CPU & fix some grammatical mistakes (#2150)
* Update eval.py * Update download.py
上级
de14eef0
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
5 addition
and
5 deletion
+5
-5
dygraph/ppdet/utils/download.py
dygraph/ppdet/utils/download.py
+1
-1
ppdet/utils/download.py
ppdet/utils/download.py
+3
-3
tools/eval.py
tools/eval.py
+1
-1
未找到文件。
dygraph/ppdet/utils/download.py
浏览文件 @
da0e1eed
...
...
@@ -226,7 +226,7 @@ def _dataset_exists(path, annotation, image_dir):
Check if user define dataset exists
"""
if
not
osp
.
exists
(
path
):
logger
.
debug
(
"Config dataset_dir {}
is not exits
, "
logger
.
debug
(
"Config dataset_dir {}
does not exist
, "
"dataset config is not valid"
.
format
(
path
))
return
False
...
...
ppdet/utils/download.py
浏览文件 @
da0e1eed
...
...
@@ -244,14 +244,14 @@ def _dataset_exists(path, annotation, image_dir):
Check if user define dataset exists
"""
if
not
osp
.
exists
(
path
):
logger
.
debug
(
"Config dataset_dir {}
is not exits
, "
logger
.
debug
(
"Config dataset_dir {}
does not exist
, "
"dataset config is not valid"
.
format
(
path
))
return
False
if
annotation
:
annotation_path
=
osp
.
join
(
path
,
annotation
)
if
not
osp
.
exists
(
annotation_path
):
logger
.
error
(
"Config
dataset_dir {} is not exits!"
.
format
(
path
))
logger
.
error
(
"Config
anno_path {} does not exist!"
.
format
(
annotation_
path
))
if
not
osp
.
isfile
(
annotation_path
):
logger
.
warning
(
"Config annotation {} is not a "
...
...
@@ -261,7 +261,7 @@ def _dataset_exists(path, annotation, image_dir):
if
image_dir
:
image_path
=
osp
.
join
(
path
,
image_dir
)
if
not
osp
.
exists
(
image_path
):
logger
.
warning
(
"Config
dataset_dir {} is not exits!"
.
format
(
path
))
logger
.
warning
(
"Config
image_dir {} does not exist!"
.
format
(
image_
path
))
if
not
osp
.
isdir
(
image_path
):
logger
.
warning
(
"Config image_dir {} is not a "
...
...
tools/eval.py
浏览文件 @
da0e1eed
...
...
@@ -69,7 +69,7 @@ def main():
elif
use_xpu
:
place
=
fluid
.
XPUPlace
(
0
)
else
:
place
=
CPUPlace
()
place
=
fluid
.
CPUPlace
()
exe
=
fluid
.
Executor
(
place
)
# build program
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录