fix: mask_to_segs - side effect of combined+bbox fill

This commit is contained in:
Dr.Lt.Data
2023-12-28 22:14:48 +09:00
parent 4667ba1a8a
commit 9d22e7e55c
2 changed files with 2 additions and 1 deletions
+1 -1
View File
@@ -2,7 +2,7 @@ import configparser
import os
version = "V4.54.1"
version = "V4.54.2"
dependency_version = 20
+1
View File
@@ -1012,6 +1012,7 @@ def mask_to_segs(mask, combined, crop_factor, bbox_fill, drop_size=1, label='A',
if bbox_fill:
bx1, by1, bx2, by2 = bbox
cropped_mask = cropped_mask.copy()
cropped_mask[by1:by2, bx1:bx2] = 1.0
if cropped_mask is not None: