chawin.chen Qwen-Coder commited on
Commit ·
102bb27
1
Parent(s): 8d16a3c
fix: 颜值分数标签保留两位小数
Browse filesCo-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
- face_analyzer.py +1 -1
face_analyzer.py
CHANGED
|
@@ -1048,7 +1048,7 @@ class EnhancedFaceAnalyzer:
|
|
| 1048 |
|
| 1049 |
# 标签文本
|
| 1050 |
beauty_score = prediction_result.get("beauty_score_100", 0)
|
| 1051 |
-
label = f"{gender}, {display_age_str}, {beauty_score}"
|
| 1052 |
|
| 1053 |
font_scale = max(
|
| 1054 |
0.3, min(0.7, image.shape[0] / 800)
|
|
|
|
| 1048 |
|
| 1049 |
# 标签文本
|
| 1050 |
beauty_score = prediction_result.get("beauty_score_100", 0)
|
| 1051 |
+
label = f"{gender}, {display_age_str}, {beauty_score:.2f}"
|
| 1052 |
|
| 1053 |
font_scale = max(
|
| 1054 |
0.3, min(0.7, image.shape[0] / 800)
|