From 5e3fde31d9f91adb672f45ec416be98ff9d0032e Mon Sep 17 00:00:00 2001 From: Robert Sachunsky Date: Sun, 19 Jul 2026 03:22:56 +0200 Subject: [PATCH] calculate_width_height_by_columns: do allow highest enlargement when confident --- src/eynollah/eynollah.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/eynollah/eynollah.py b/src/eynollah/eynollah.py index b1169a6..becf802 100644 --- a/src/eynollah/eynollah.py +++ b/src/eynollah/eynollah.py @@ -276,7 +276,7 @@ class Eynollah: img_new = np.copy(img) img_is_resized = False #elif conf_col < 0.8 and img_h_new >= 8000: - elif img_h_new >= 8000: + elif conf_col < 0.9 and img_h_new >= 8000: # don't upsample if too large img_new = np.copy(img) img_is_resized = False