Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
PaddleX
提交
19523861
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看板
未验证
提交
19523861
编写于
7月 03, 2020
作者:
Z
Zeyu Chen
提交者:
GitHub
7月 03, 2020
浏览文件
操作
浏览文件
下载
差异文件
Fix typo in visualize.py
fix error word in visualize.py
上级
b176ab3d
72fdbee1
变更
1
显示空白变更内容
内联
并排
Showing
1 changed file
with
5 addition
and
5 deletion
+5
-5
paddlex/cv/transforms/visualize.py
paddlex/cv/transforms/visualize.py
+5
-5
未找到文件。
paddlex/cv/transforms/visualize.py
浏览文件 @
19523861
...
@@ -73,7 +73,7 @@ def cls_compose(im, label=None, transforms=None, vdl_writer=None, step=0):
...
@@ -73,7 +73,7 @@ def cls_compose(im, label=None, transforms=None, vdl_writer=None, step=0):
raise
TypeError
(
'Can
\'
t read The image file {}!'
.
format
(
im
))
raise
TypeError
(
'Can
\'
t read The image file {}!'
.
format
(
im
))
im
=
cv2
.
cvtColor
(
im
,
cv2
.
COLOR_BGR2RGB
)
im
=
cv2
.
cvtColor
(
im
,
cv2
.
COLOR_BGR2RGB
)
if
vdl_writer
is
not
None
:
if
vdl_writer
is
not
None
:
vdl_writer
.
add_image
(
tag
=
'0. OriginalIma
n
ge/'
+
str
(
step
),
vdl_writer
.
add_image
(
tag
=
'0. OriginalImage/'
+
str
(
step
),
img
=
im
,
img
=
im
,
step
=
0
)
step
=
0
)
op_id
=
1
op_id
=
1
...
@@ -148,7 +148,7 @@ def det_compose(im, im_info=None, label_info=None, transforms=None, vdl_writer=N
...
@@ -148,7 +148,7 @@ def det_compose(im, im_info=None, label_info=None, transforms=None, vdl_writer=N
if
len
(
outputs
)
==
3
:
if
len
(
outputs
)
==
3
:
label_info
=
outputs
[
2
]
label_info
=
outputs
[
2
]
if
vdl_writer
is
not
None
:
if
vdl_writer
is
not
None
:
vdl_writer
.
add_image
(
tag
=
'0. OriginalIma
n
ge/'
+
str
(
step
),
vdl_writer
.
add_image
(
tag
=
'0. OriginalImage/'
+
str
(
step
),
img
=
im
,
img
=
im
,
step
=
0
)
step
=
0
)
op_id
=
1
op_id
=
1
...
@@ -209,7 +209,7 @@ def det_compose(im, im_info=None, label_info=None, transforms=None, vdl_writer=N
...
@@ -209,7 +209,7 @@ def det_compose(im, im_info=None, label_info=None, transforms=None, vdl_writer=N
if
vdl_writer
is
not
None
:
if
vdl_writer
is
not
None
:
tag
=
str
(
op_id
)
+
'. '
+
op
.
__class__
.
__name__
+
'/'
+
str
(
step
)
tag
=
str
(
op_id
)
+
'. '
+
op
.
__class__
.
__name__
+
'/'
+
str
(
step
)
if
op
is
None
:
if
op
is
None
:
tag
=
str
(
op_id
)
+
'. OriginalIma
n
geWithGTBox/'
+
str
(
step
)
tag
=
str
(
op_id
)
+
'. OriginalImageWithGTBox/'
+
str
(
step
)
vdl_writer
.
add_image
(
tag
=
tag
,
vdl_writer
.
add_image
(
tag
=
tag
,
img
=
vdl_im
,
img
=
vdl_im
,
step
=
0
)
step
=
0
)
...
@@ -233,7 +233,7 @@ def seg_compose(im, im_info=None, label=None, transforms=None, vdl_writer=None,
...
@@ -233,7 +233,7 @@ def seg_compose(im, im_info=None, label=None, transforms=None, vdl_writer=None,
if
not
isinstance
(
label
,
np
.
ndarray
):
if
not
isinstance
(
label
,
np
.
ndarray
):
label
=
np
.
asarray
(
Image
.
open
(
label
))
label
=
np
.
asarray
(
Image
.
open
(
label
))
if
vdl_writer
is
not
None
:
if
vdl_writer
is
not
None
:
vdl_writer
.
add_image
(
tag
=
'0. OriginalIma
n
ge'
+
'/'
+
str
(
step
),
vdl_writer
.
add_image
(
tag
=
'0. OriginalImage'
+
'/'
+
str
(
step
),
img
=
im
,
img
=
im
,
step
=
0
)
step
=
0
)
op_id
=
1
op_id
=
1
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录