From c0faecec2c39440862d878fab3fa044621434ca6 Mon Sep 17 00:00:00 2001 From: vahidrezanezhad Date: Fri, 21 Jun 2024 23:42:25 +0200 Subject: [PATCH] update inference --- inference.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/inference.py b/inference.py index c7a8b02..3fec9c2 100644 --- a/inference.py +++ b/inference.py @@ -557,6 +557,10 @@ class sbb_predict: res=self.predict() if (self.task == 'classification' or self.task == 'reading_order'): pass + elif self.task == 'enhancement': + if self.save: + print(self.save) + cv2.imwrite(self.save,res) else: img_seg_overlayed = self.visualize_model_output(res, self.img_org, self.task) if self.save: