mirror of
https://github.com/PaddlePaddle/PaddleOCR.git
synced 2026-09-24 23:33:08 +08:00
Reduce saved information to reduce memory usage
This commit is contained in:
@@ -168,22 +168,27 @@ class DetectionIoUEvaluator(object):
|
||||
numGlobalCareGt += numGtCare
|
||||
numGlobalCareDet += numDetCare
|
||||
|
||||
# perSampleMetrics = {
|
||||
# 'precision': precision,
|
||||
# 'recall': recall,
|
||||
# 'hmean': hmean,
|
||||
# 'pairs': pairs,
|
||||
# 'iouMat': [] if len(detPols) > 100 else iouMat.tolist(),
|
||||
# 'gtPolPoints': gtPolPoints,
|
||||
# 'detPolPoints': detPolPoints,
|
||||
# 'gtCare': numGtCare,
|
||||
# 'detCare': numDetCare,
|
||||
# 'gtDontCare': gtDontCarePolsNum,
|
||||
# 'detDontCare': detDontCarePolsNum,
|
||||
# 'detMatched': detMatched,
|
||||
# 'evaluationLog': evaluationLog
|
||||
# }
|
||||
|
||||
perSampleMetrics = {
|
||||
'precision': precision,
|
||||
'recall': recall,
|
||||
'hmean': hmean,
|
||||
'pairs': pairs,
|
||||
'iouMat': [] if len(detPols) > 100 else iouMat.tolist(),
|
||||
'gtPolPoints': gtPolPoints,
|
||||
'detPolPoints': detPolPoints,
|
||||
'gtCare': numGtCare,
|
||||
'detCare': numDetCare,
|
||||
'gtDontCare': gtDontCarePolsNum,
|
||||
'detDontCare': detDontCarePolsNum,
|
||||
'detMatched': detMatched,
|
||||
'evaluationLog': evaluationLog
|
||||
}
|
||||
|
||||
return perSampleMetrics
|
||||
|
||||
def combine_results(self, results):
|
||||
|
||||
Reference in New Issue
Block a user