mirror of
https://github.com/qurator-spk/sbb_pixelwise_segmentation.git
synced 2025-06-20 09:10:03 +02:00
Update inference.py to check if save_layout was passed as argument otherwise can give an cv2 error
This commit is contained in:
parent
cca4d17823
commit
df4a47ae6f
1 changed files with 1 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue