calculate_width_height_by_columns_1_2: do allow highest enlargement when confident

This commit is contained in:
Robert Sachunsky 2026-07-20 02:05:13 +02:00
parent 91f87fa784
commit 198552e100

View file

@ -297,7 +297,7 @@ class Eynollah:
img_new = np.copy(img) img_new = np.copy(img)
img_is_resized = False img_is_resized = False
#elif conf_col < 0.8 and img_h_new >= 8000: #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 # don't upsample if too large
img_new = np.copy(img) img_new = np.copy(img)
img_is_resized = False img_is_resized = False