Update inference.py to check if save_layout was passed as argument otherwise can give an cv2 error

pull/18/head
johnlockejrr 2 months ago committed by GitHub
parent cca4d17823
commit df4a47ae6f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -566,6 +566,7 @@ class sbb_predict:
img_seg_overlayed, only_layout = self.visualize_model_output(res, self.img_org, self.task)
if self.save:
cv2.imwrite(self.save,img_seg_overlayed)
if self.save_layout:
cv2.imwrite(self.save_layout, only_layout)
if self.ground_truth:

Loading…
Cancel
Save