From 637a08da6a1118c79216333e805f209fc7ee8303 Mon Sep 17 00:00:00 2001 From: Mike Gerber Date: Thu, 12 Oct 2023 20:21:54 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Fix=20recognize.py?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit config.py's TF_CPP_MIN_LOG_LEVEL was removed but recognize.py not adapted accordingly. Fix this by removing the use of the variable there as well. --- ocrd_calamari/recognize.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ocrd_calamari/recognize.py b/ocrd_calamari/recognize.py index bafe855..5a16c41 100644 --- a/ocrd_calamari/recognize.py +++ b/ocrd_calamari/recognize.py @@ -34,9 +34,8 @@ from ocrd_models.ocrd_page import ( to_xml ) -from ocrd_calamari.config import OCRD_TOOL, TF_CPP_MIN_LOG_LEVEL +from ocrd_calamari.config import OCRD_TOOL -os.environ['TF_CPP_MIN_LOG_LEVEL'] = TF_CPP_MIN_LOG_LEVEL from tensorflow import __version__ as tensorflow_version TOOL = 'ocrd-calamari-recognize'