Sfoglia il codice sorgente

fix_LaTeX_OCR_mertic

zhangyubo0722 1 anno fa
parent
commit
98dfae78c2
1 ha cambiato i file con 1 aggiunte e 0 eliminazioni
  1. 1 0
      paddlex/repo_apis/PaddleOCR_api/text_rec/runner.py

+ 1 - 0
paddlex/repo_apis/PaddleOCR_api/text_rec/runner.py

@@ -222,6 +222,7 @@ def _extract_eval_metrics(stdout: str) -> dict:
         (re.compile(r"precision:(_dp)$".replace("_dp", _DP)), "precision"),
         (re.compile(r"recall:(_dp)$".replace("_dp", _DP)), "recall"),
         (re.compile(r"hmean:(_dp)$".replace("_dp", _DP)), "hmean"),
+        (re.compile(r"exp_rate:(_dp)$".replace("_dp", _DP)), "exp_rate"),
     ]
 
     metric_dict = dict()