Skip to content

Commit 350a642

Browse files
committed
CVAuto:解决统计数据 diff 的指标显示的是多位小数而不是整数百分比
1 parent b0025a2 commit 350a642

File tree

1 file changed

+3
-3
lines changed
  • APIJSON-Java-Server/APIJSONBoot-MultiDataSource/src/main/resources/static/cv/js

1 file changed

+3
-3
lines changed

APIJSON-Java-Server/APIJSONBoot-MultiDataSource/src/main/resources/static/cv/js/main.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7154,9 +7154,9 @@ https://github.com/Tencent/APIJSON/issues
71547154
detection['diff' + type + 'CorrectStr'] = (correct >= 0 ? '+' : '') + correct;
71557155
detection['diff' + type + 'WrongStr'] = (wrong >= 0 ? '+' : '') + wrong;
71567156
detection['diff' + type + 'MissStr'] = (miss >= 0 ? '+' : '') + miss;
7157-
detection['diff' + type + 'RecallStr'] = (recall >= 0 ? '+' : '') + recall;
7158-
detection['diff' + type + 'PrecisionStr'] = (precision >= 0 ? '+' : '') + precision;
7159-
detection['diff' + type + 'F1Str'] = (f1 >= 0 ? '+' : '') + f1;
7157+
detection['diff' + type + 'RecallStr'] = (recall >= 0 ? '+' : '') + (100 * recall).toFixed(0);
7158+
detection['diff' + type + 'PrecisionStr'] = (precision >= 0 ? '+' : '') + (100 * precision).toFixed(0);
7159+
detection['diff' + type + 'F1Str'] = (f1 >= 0 ? '+' : '') + (100 * f1).toFixed(0);
71607160
});
71617161
} else {
71627162
var imgTotal = detection[stage + 'ImgTotal'] = curTr.imgTotal || curTr.imgCorrect || 0;

0 commit comments

Comments
 (0)