Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
PaddleX
提交
13501bfb
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看板
提交
13501bfb
编写于
5月 08, 2020
作者:
S
sunyanfang01
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix the bug
上级
9efb0100
变更
3
显示空白变更内容
内联
并排
Showing
3 changed file
with
3 addition
and
3 deletion
+3
-3
paddlex/cv/datasets/easydata_cls.py
paddlex/cv/datasets/easydata_cls.py
+1
-1
paddlex/cv/datasets/easydata_det.py
paddlex/cv/datasets/easydata_det.py
+1
-1
paddlex/cv/datasets/easydata_seg.py
paddlex/cv/datasets/easydata_seg.py
+1
-1
未找到文件。
paddlex/cv/datasets/easydata_cls.py
浏览文件 @
13501bfb
...
@@ -76,7 +76,7 @@ class EasyDataCls(ImageNet):
...
@@ -76,7 +76,7 @@ class EasyDataCls(ImageNet):
raise
IOError
(
raise
IOError
(
'The image file {} is not exist!'
.
format
(
img_file
))
'The image file {} is not exist!'
.
format
(
img_file
))
with
open
(
json_file
,
mode
=
'r'
,
\
with
open
(
json_file
,
mode
=
'r'
,
\
encoding
=
get_encoding
(
label_list
))
as
j
:
encoding
=
get_encoding
(
json_file
))
as
j
:
json_info
=
json
.
load
(
j
)
json_info
=
json
.
load
(
j
)
label
=
json_info
[
'labels'
][
0
][
'name'
]
label
=
json_info
[
'labels'
][
0
][
'name'
]
self
.
file_list
.
append
([
img_file
,
self
.
labels
.
index
(
label
)])
self
.
file_list
.
append
([
img_file
,
self
.
labels
.
index
(
label
)])
...
...
paddlex/cv/datasets/easydata_det.py
浏览文件 @
13501bfb
...
@@ -96,7 +96,7 @@ class EasyDataDet(VOCDetection):
...
@@ -96,7 +96,7 @@ class EasyDataDet(VOCDetection):
raise
IOError
(
raise
IOError
(
'The image file {} is not exist!'
.
format
(
img_file
))
'The image file {} is not exist!'
.
format
(
img_file
))
with
open
(
json_file
,
mode
=
'r'
,
\
with
open
(
json_file
,
mode
=
'r'
,
\
encoding
=
get_encoding
(
label_list
))
as
j
:
encoding
=
get_encoding
(
json_file
))
as
j
:
json_info
=
json
.
load
(
j
)
json_info
=
json
.
load
(
j
)
im_id
=
np
.
array
([
ct
])
im_id
=
np
.
array
([
ct
])
im
=
cv2
.
imread
(
img_file
)
im
=
cv2
.
imread
(
img_file
)
...
...
paddlex/cv/datasets/easydata_seg.py
浏览文件 @
13501bfb
...
@@ -79,7 +79,7 @@ class EasyDataSeg(Dataset):
...
@@ -79,7 +79,7 @@ class EasyDataSeg(Dataset):
raise
IOError
(
raise
IOError
(
'The image file {} is not exist!'
.
format
(
img_file
))
'The image file {} is not exist!'
.
format
(
img_file
))
with
open
(
json_file
,
mode
=
'r'
,
\
with
open
(
json_file
,
mode
=
'r'
,
\
encoding
=
get_encoding
(
label_list
))
as
j
:
encoding
=
get_encoding
(
json_file
))
as
j
:
json_info
=
json
.
load
(
j
)
json_info
=
json
.
load
(
j
)
im
=
cv2
.
imread
(
img_file
)
im
=
cv2
.
imread
(
img_file
)
im_w
=
im
.
shape
[
1
]
im_w
=
im
.
shape
[
1
]
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录