From 7499e3e7b827a188753c7fd5db40c03077009a9e Mon Sep 17 00:00:00 2001 From: vahidrezanezhad Date: Fri, 13 Mar 2026 17:48:27 +0100 Subject: [PATCH] textline inference thresholding was disabled during the merging step --- src/eynollah/eynollah.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/eynollah/eynollah.py b/src/eynollah/eynollah.py index 9383c5e..287251e 100644 --- a/src/eynollah/eynollah.py +++ b/src/eynollah/eynollah.py @@ -1513,11 +1513,13 @@ class Eynollah: img_h = img_org.shape[0] img_w = img_org.shape[1] img = resize_image(img_org, int(img_org.shape[0] * scaler_h), int(img_org.shape[1] * scaler_w)) - + prediction_textline = self.do_prediction(use_patches, img, self.model_zoo.get("textline"), marginal_of_patch_percent=0.15, n_batch_inference=3, + thresholding_for_artificial_class_in_light_version=True, threshold_art_class_textline=self.threshold_art_class_textline) + prediction_textline = resize_image(prediction_textline, img_h, img_w) textline_mask_tot_ea_art = (prediction_textline[:,:]==2)*1