mirror of
https://github.com/qurator-spk/eynollah.git
synced 2026-03-24 08:02:45 +01:00
textline inference thresholding was disabled during the merging step
This commit is contained in:
parent
f1d8257496
commit
7499e3e7b8
1 changed files with 3 additions and 1 deletions
|
|
@ -1517,8 +1517,10 @@ class Eynollah:
|
||||||
prediction_textline = self.do_prediction(use_patches, img, self.model_zoo.get("textline"),
|
prediction_textline = self.do_prediction(use_patches, img, self.model_zoo.get("textline"),
|
||||||
marginal_of_patch_percent=0.15,
|
marginal_of_patch_percent=0.15,
|
||||||
n_batch_inference=3,
|
n_batch_inference=3,
|
||||||
|
thresholding_for_artificial_class_in_light_version=True,
|
||||||
threshold_art_class_textline=self.threshold_art_class_textline)
|
threshold_art_class_textline=self.threshold_art_class_textline)
|
||||||
|
|
||||||
|
|
||||||
prediction_textline = resize_image(prediction_textline, img_h, img_w)
|
prediction_textline = resize_image(prediction_textline, img_h, img_w)
|
||||||
textline_mask_tot_ea_art = (prediction_textline[:,:]==2)*1
|
textline_mask_tot_ea_art = (prediction_textline[:,:]==2)*1
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue