Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
PaddleX
提交
9964b7ad
P
PaddleX
项目概览
PaddlePaddle
/
PaddleX
通知
138
Star
4
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
43
列表
看板
标记
里程碑
合并请求
5
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
P
PaddleX
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
43
Issue
43
列表
看板
标记
里程碑
合并请求
5
合并请求
5
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
9964b7ad
编写于
5月 08, 2020
作者:
F
FlyingQianMM
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
change dict to OrderedDict in voc
上级
888ea8a2
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
4 addition
and
2 deletion
+4
-2
paddlex/cv/datasets/voc.py
paddlex/cv/datasets/voc.py
+2
-1
paddlex/cv/models/utils/visualize.py
paddlex/cv/models/utils/visualize.py
+2
-1
未找到文件。
paddlex/cv/datasets/voc.py
浏览文件 @
9964b7ad
...
@@ -17,6 +17,7 @@ import copy
...
@@ -17,6 +17,7 @@ import copy
import
os.path
as
osp
import
os.path
as
osp
import
random
import
random
import
numpy
as
np
import
numpy
as
np
from
collections
import
OrderedDict
import
xml.etree.ElementTree
as
ET
import
xml.etree.ElementTree
as
ET
import
paddlex.utils.logging
as
logging
import
paddlex.utils.logging
as
logging
from
.dataset
import
Dataset
from
.dataset
import
Dataset
...
@@ -66,7 +67,7 @@ class VOCDetection(Dataset):
...
@@ -66,7 +67,7 @@ class VOCDetection(Dataset):
annotations
[
'categories'
]
=
[]
annotations
[
'categories'
]
=
[]
annotations
[
'annotations'
]
=
[]
annotations
[
'annotations'
]
=
[]
cname2cid
=
{}
cname2cid
=
OrderedDict
()
label_id
=
1
label_id
=
1
with
open
(
label_list
,
'r'
,
encoding
=
get_encoding
(
label_list
))
as
fr
:
with
open
(
label_list
,
'r'
,
encoding
=
get_encoding
(
label_list
))
as
fr
:
for
line
in
fr
.
readlines
():
for
line
in
fr
.
readlines
():
...
...
paddlex/cv/models/utils/visualize.py
浏览文件 @
9964b7ad
...
@@ -16,6 +16,8 @@ import os
...
@@ -16,6 +16,8 @@ import os
import
cv2
import
cv2
import
colorsys
import
colorsys
import
numpy
as
np
import
numpy
as
np
import
matplotlib
matplotlib
.
use
(
'Agg'
)
import
matplotlib
as
mpl
import
matplotlib
as
mpl
import
matplotlib.pyplot
as
plt
import
matplotlib.pyplot
as
plt
import
matplotlib.figure
as
mplfigure
import
matplotlib.figure
as
mplfigure
...
@@ -333,7 +335,6 @@ def draw_pr_curve(eval_details_file=None,
...
@@ -333,7 +335,6 @@ def draw_pr_curve(eval_details_file=None,
return
mean_s
return
mean_s
def
cal_pr
(
coco_gt
,
coco_dt
,
iou_thresh
,
save_dir
,
style
=
'bbox'
):
def
cal_pr
(
coco_gt
,
coco_dt
,
iou_thresh
,
save_dir
,
style
=
'bbox'
):
import
matplotlib.pyplot
as
plt
from
pycocotools.cocoeval
import
COCOeval
from
pycocotools.cocoeval
import
COCOeval
coco_dt
=
loadRes
(
coco_gt
,
coco_dt
)
coco_dt
=
loadRes
(
coco_gt
,
coco_dt
)
np
.
linspace
=
fixed_linspace
np
.
linspace
=
fixed_linspace
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录