From 24cad4001076cb50e44028a12aa7759a44667764 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20B=C3=BCttner?= Date: Mon, 2 May 2022 13:34:44 +0200 Subject: [PATCH] Temp scaling not active by default --- calamari_ocr/ocr/model/params.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/calamari_ocr/ocr/model/params.py b/calamari_ocr/ocr/model/params.py index 3bb6419f..dbab446b 100644 --- a/calamari_ocr/ocr/model/params.py +++ b/calamari_ocr/ocr/model/params.py @@ -53,7 +53,7 @@ class ModelParams(ModelBaseParams): classes: int = -1 ctc_merge_repeated: bool = True ensemble: int = 0 # For usage with the ensemble-model graph - temperature: float = field(default=1, metadata=pai_meta(help="Value to divide logits by (temperature scaling).")) + temperature: float = field(default=-1, metadata=pai_meta(help="Value to divide logits by (temperature scaling).")) masking_mode: int = False # This parameter is for evaluation only and should not be used in production @staticmethod