Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
PaddleDetection
提交
f3caf39c
P
PaddleDetection
项目概览
PaddlePaddle
/
PaddleDetection
大约 1 年 前同步成功
通知
695
Star
11112
Fork
2696
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
184
列表
看板
标记
里程碑
合并请求
40
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
P
PaddleDetection
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
184
Issue
184
列表
看板
标记
里程碑
合并请求
40
合并请求
40
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
未验证
提交
f3caf39c
编写于
12月 18, 2020
作者:
K
Kaipeng Deng
提交者:
GitHub
12月 18, 2020
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
unify setup_logger (#1928)
上级
48ddaa99
变更
17
隐藏空白更改
内联
并排
Showing
17 changed file
with
42 addition
and
37 deletion
+42
-37
ppdet/data/source/coco.py
ppdet/data/source/coco.py
+2
-2
ppdet/data/source/voc.py
ppdet/data/source/voc.py
+3
-2
ppdet/data/source/widerface.py
ppdet/data/source/widerface.py
+3
-2
ppdet/data/transform/batch_operator.py
ppdet/data/transform/batch_operator.py
+2
-2
ppdet/data/transform/batch_operators.py
ppdet/data/transform/batch_operators.py
+2
-2
ppdet/data/transform/operator.py
ppdet/data/transform/operator.py
+2
-2
ppdet/data/transform/operators.py
ppdet/data/transform/operators.py
+2
-2
ppdet/optimizer.py
ppdet/optimizer.py
+2
-3
ppdet/utils/bbox_utils.py
ppdet/utils/bbox_utils.py
+3
-3
ppdet/utils/check.py
ppdet/utils/check.py
+3
-2
ppdet/utils/checkpoint.py
ppdet/utils/checkpoint.py
+3
-2
ppdet/utils/coco_eval.py
ppdet/utils/coco_eval.py
+2
-2
ppdet/utils/download.py
ppdet/utils/download.py
+2
-2
ppdet/utils/eval_utils.py
ppdet/utils/eval_utils.py
+3
-2
ppdet/utils/map_utils.py
ppdet/utils/map_utils.py
+3
-2
ppdet/utils/post_process.py
ppdet/utils/post_process.py
+3
-3
ppdet/utils/voc_eval.py
ppdet/utils/voc_eval.py
+2
-2
未找到文件。
ppdet/data/source/coco.py
浏览文件 @
f3caf39c
...
@@ -14,11 +14,11 @@
...
@@ -14,11 +14,11 @@
import
os
import
os
import
numpy
as
np
import
numpy
as
np
import
logging
from
ppdet.core.workspace
import
register
,
serializable
from
ppdet.core.workspace
import
register
,
serializable
from
.dataset
import
DetDataset
from
.dataset
import
DetDataset
logger
=
logging
.
getLogger
(
__name__
)
from
ppdet.utils.logger
import
setup_logger
logger
=
setup_logger
(
__name__
)
@
register
@
register
...
...
ppdet/data/source/voc.py
浏览文件 @
f3caf39c
...
@@ -20,8 +20,9 @@ import xml.etree.ElementTree as ET
...
@@ -20,8 +20,9 @@ import xml.etree.ElementTree as ET
from
ppdet.core.workspace
import
register
,
serializable
from
ppdet.core.workspace
import
register
,
serializable
from
.dataset
import
DetDataset
from
.dataset
import
DetDataset
import
logging
logger
=
logging
.
getLogger
(
__name__
)
from
ppdet.utils.logger
import
setup_logger
logger
=
setup_logger
(
__name__
)
@
register
@
register
...
...
ppdet/data/source/widerface.py
浏览文件 @
f3caf39c
...
@@ -14,12 +14,13 @@
...
@@ -14,12 +14,13 @@
import
os
import
os
import
numpy
as
np
import
numpy
as
np
import
logging
logger
=
logging
.
getLogger
(
__name__
)
from
ppdet.core.workspace
import
register
,
serializable
from
ppdet.core.workspace
import
register
,
serializable
from
.dataset
import
DataSet
from
.dataset
import
DataSet
from
ppdet.utils.logger
import
setup_logger
logger
=
setup_logger
(
__name__
)
@
register
@
register
@
serializable
@
serializable
...
...
ppdet/data/transform/batch_operator.py
浏览文件 @
f3caf39c
...
@@ -21,14 +21,14 @@ try:
...
@@ -21,14 +21,14 @@ try:
except
Exception
:
except
Exception
:
from
collections
import
Sequence
from
collections
import
Sequence
import
logging
import
cv2
import
cv2
import
numpy
as
np
import
numpy
as
np
from
.operator
import
register_op
,
BaseOperator
,
ResizeOp
from
.operator
import
register_op
,
BaseOperator
,
ResizeOp
from
.op_helper
import
jaccard_overlap
,
gaussian2D
from
.op_helper
import
jaccard_overlap
,
gaussian2D
from
scipy
import
ndimage
from
scipy
import
ndimage
logger
=
logging
.
getLogger
(
__name__
)
from
ppdet.utils.logger
import
setup_logger
logger
=
setup_logger
(
__name__
)
__all__
=
[
__all__
=
[
'PadBatchOp'
,
'PadBatchOp'
,
...
...
ppdet/data/transform/batch_operators.py
浏览文件 @
f3caf39c
...
@@ -21,14 +21,14 @@ try:
...
@@ -21,14 +21,14 @@ try:
except
Exception
:
except
Exception
:
from
collections
import
Sequence
from
collections
import
Sequence
import
logging
import
cv2
import
cv2
import
numpy
as
np
import
numpy
as
np
from
.operator
import
register_op
,
BaseOperator
from
.operator
import
register_op
,
BaseOperator
from
.op_helper
import
jaccard_overlap
,
gaussian2D
from
.op_helper
import
jaccard_overlap
,
gaussian2D
from
.operators
import
NormalizeImage
,
Permute
from
.operators
import
NormalizeImage
,
Permute
logger
=
logging
.
getLogger
(
__name__
)
from
ppdet.utils.logger
import
setup_logger
logger
=
setup_logger
(
__name__
)
__all__
=
[
__all__
=
[
'PadBatch'
,
'PadBatch'
,
...
...
ppdet/data/transform/operator.py
浏览文件 @
f3caf39c
...
@@ -28,7 +28,6 @@ except Exception:
...
@@ -28,7 +28,6 @@ except Exception:
from
numbers
import
Number
,
Integral
from
numbers
import
Number
,
Integral
import
uuid
import
uuid
import
logging
import
random
import
random
import
math
import
math
import
numpy
as
np
import
numpy
as
np
...
@@ -47,7 +46,8 @@ from .op_helper import (satisfy_sample_constraint, filter_and_process,
...
@@ -47,7 +46,8 @@ from .op_helper import (satisfy_sample_constraint, filter_and_process,
generate_sample_bbox_square
,
bbox_area_sampling
,
generate_sample_bbox_square
,
bbox_area_sampling
,
is_poly
,
gaussian_radius
,
draw_gaussian
)
is_poly
,
gaussian_radius
,
draw_gaussian
)
logger
=
logging
.
getLogger
(
__name__
)
from
ppdet.utils.logger
import
setup_logger
logger
=
setup_logger
(
__name__
)
registered_ops
=
[]
registered_ops
=
[]
...
...
ppdet/data/transform/operators.py
浏览文件 @
f3caf39c
...
@@ -28,7 +28,6 @@ except Exception:
...
@@ -28,7 +28,6 @@ except Exception:
from
numbers
import
Number
from
numbers
import
Number
import
uuid
import
uuid
import
logging
import
random
import
random
import
math
import
math
import
numpy
as
np
import
numpy
as
np
...
@@ -47,7 +46,8 @@ from .op_helper import (satisfy_sample_constraint, filter_and_process,
...
@@ -47,7 +46,8 @@ from .op_helper import (satisfy_sample_constraint, filter_and_process,
generate_sample_bbox_square
,
bbox_area_sampling
,
generate_sample_bbox_square
,
bbox_area_sampling
,
is_poly
,
gaussian_radius
,
draw_gaussian
)
is_poly
,
gaussian_radius
,
draw_gaussian
)
logger
=
logging
.
getLogger
(
__name__
)
from
ppdet.utils.logger
import
setup_logger
logger
=
setup_logger
(
__name__
)
@
register_op
@
register_op
...
...
ppdet/optimizer.py
浏览文件 @
f3caf39c
...
@@ -17,8 +17,6 @@ from __future__ import division
...
@@ -17,8 +17,6 @@ from __future__ import division
from
__future__
import
print_function
from
__future__
import
print_function
import
math
import
math
import
logging
import
paddle
import
paddle
import
paddle.nn
as
nn
import
paddle.nn
as
nn
...
@@ -30,7 +28,8 @@ from ppdet.core.workspace import register, serializable
...
@@ -30,7 +28,8 @@ from ppdet.core.workspace import register, serializable
__all__
=
[
'LearningRate'
,
'OptimizerBuilder'
]
__all__
=
[
'LearningRate'
,
'OptimizerBuilder'
]
logger
=
logging
.
getLogger
(
__name__
)
from
ppdet.utils.logger
import
setup_logger
logger
=
setup_logger
(
__name__
)
@
serializable
@
serializable
...
...
ppdet/utils/bbox_utils.py
浏览文件 @
f3caf39c
...
@@ -16,12 +16,12 @@ from __future__ import absolute_import
...
@@ -16,12 +16,12 @@ from __future__ import absolute_import
from
__future__
import
division
from
__future__
import
division
from
__future__
import
print_function
from
__future__
import
print_function
import
logging
import
numpy
as
np
import
numpy
as
np
__all__
=
[
"bbox_overlaps"
,
"box_to_delta"
]
from
.logger
import
setup_logger
logger
=
setup_logger
(
__name__
)
logger
=
logging
.
getLogger
(
__name__
)
__all__
=
[
"bbox_overlaps"
,
"box_to_delta"
]
def
bbox_overlaps
(
boxes_1
,
boxes_2
):
def
bbox_overlaps
(
boxes_1
,
boxes_2
):
...
...
ppdet/utils/check.py
浏览文件 @
f3caf39c
...
@@ -19,10 +19,11 @@ from __future__ import print_function
...
@@ -19,10 +19,11 @@ from __future__ import print_function
import
sys
import
sys
import
paddle
import
paddle
import
logging
import
six
import
six
import
paddle.version
as
fluid_version
import
paddle.version
as
fluid_version
logger
=
logging
.
getLogger
(
__name__
)
from
.logger
import
setup_logger
logger
=
setup_logger
(
__name__
)
__all__
=
[
'check_gpu'
,
'check_version'
,
'check_config'
]
__all__
=
[
'check_gpu'
,
'check_version'
,
'check_config'
]
...
...
ppdet/utils/checkpoint.py
浏览文件 @
f3caf39c
...
@@ -24,8 +24,9 @@ import re
...
@@ -24,8 +24,9 @@ import re
import
numpy
as
np
import
numpy
as
np
import
paddle
import
paddle
from
.download
import
get_weights_path
from
.download
import
get_weights_path
import
logging
logger
=
logging
.
getLogger
(
__name__
)
from
.logger
import
setup_logger
logger
=
setup_logger
(
__name__
)
def
is_url
(
path
):
def
is_url
(
path
):
...
...
ppdet/utils/coco_eval.py
浏览文件 @
f3caf39c
...
@@ -23,8 +23,8 @@ import json
...
@@ -23,8 +23,8 @@ import json
import
cv2
import
cv2
import
numpy
as
np
import
numpy
as
np
import
logging
from
.logger
import
setup_logger
logger
=
logging
.
getL
ogger
(
__name__
)
logger
=
setup_l
ogger
(
__name__
)
__all__
=
[
__all__
=
[
'bbox_eval'
,
'bbox_eval'
,
...
...
ppdet/utils/download.py
浏览文件 @
f3caf39c
...
@@ -27,8 +27,8 @@ import zipfile
...
@@ -27,8 +27,8 @@ import zipfile
from
.voc_utils
import
create_list
from
.voc_utils
import
create_list
import
logging
from
.logger
import
setup_logger
logger
=
logging
.
getL
ogger
(
__name__
)
logger
=
setup_l
ogger
(
__name__
)
__all__
=
[
__all__
=
[
'get_weights_path'
,
'get_dataset_path'
,
'download_dataset'
,
'get_weights_path'
,
'get_dataset_path'
,
'download_dataset'
,
...
...
ppdet/utils/eval_utils.py
浏览文件 @
f3caf39c
...
@@ -6,8 +6,9 @@ import os
...
@@ -6,8 +6,9 @@ import os
import
sys
import
sys
import
json
import
json
from
ppdet.py_op.post_process
import
get_det_res
,
get_seg_res
from
ppdet.py_op.post_process
import
get_det_res
,
get_seg_res
import
logging
logger
=
logging
.
getLogger
(
__name__
)
from
.logger
import
setup_logger
logger
=
setup_logger
(
__name__
)
def
json_eval_results
(
metric
,
json_directory
=
None
,
dataset
=
None
):
def
json_eval_results
(
metric
,
json_directory
=
None
,
dataset
=
None
):
...
...
ppdet/utils/map_utils.py
浏览文件 @
f3caf39c
...
@@ -19,8 +19,9 @@ from __future__ import unicode_literals
...
@@ -19,8 +19,9 @@ from __future__ import unicode_literals
import
sys
import
sys
import
numpy
as
np
import
numpy
as
np
import
logging
logger
=
logging
.
getLogger
(
__name__
)
from
.logger
import
setup_logger
logger
=
setup_logger
(
__name__
)
__all__
=
[
'bbox_area'
,
'jaccard_overlap'
,
'DetectionMAP'
]
__all__
=
[
'bbox_area'
,
'jaccard_overlap'
,
'DetectionMAP'
]
...
...
ppdet/utils/post_process.py
浏览文件 @
f3caf39c
...
@@ -16,13 +16,13 @@ from __future__ import absolute_import
...
@@ -16,13 +16,13 @@ from __future__ import absolute_import
from
__future__
import
division
from
__future__
import
division
from
__future__
import
print_function
from
__future__
import
print_function
import
logging
import
numpy
as
np
import
numpy
as
np
import
cv2
import
cv2
__all__
=
[
'nms'
]
from
.logger
import
setup_logger
logger
=
setup_logger
(
__name__
)
logger
=
logging
.
getLogger
(
__name__
)
__all__
=
[
'nms'
]
def
box_flip
(
boxes
,
im_shape
):
def
box_flip
(
boxes
,
im_shape
):
...
...
ppdet/utils/voc_eval.py
浏览文件 @
f3caf39c
...
@@ -25,8 +25,8 @@ from ..data.source.voc import pascalvoc_label
...
@@ -25,8 +25,8 @@ from ..data.source.voc import pascalvoc_label
from
.map_utils
import
DetectionMAP
from
.map_utils
import
DetectionMAP
from
.coco_eval
import
bbox2out
from
.coco_eval
import
bbox2out
import
logging
from
.logger
import
setup_logger
logger
=
logging
.
getL
ogger
(
__name__
)
logger
=
setup_l
ogger
(
__name__
)
__all__
=
[
'bbox_eval'
,
'bbox2out'
,
'get_category_info'
]
__all__
=
[
'bbox_eval'
,
'bbox2out'
,
'get_category_info'
]
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录