fix: When using segm_detector in the Simple detector, there was an issue where segm_detector was affected by the parameters of bbox_... instead of sub_.... This issue has been fixed.

This commit is contained in:
Dr.Lt.Data
2023-10-08 21:44:21 +09:00
parent 702cf6a39c
commit dadf7f2620
3 changed files with 3 additions and 2 deletions
+1
View File
@@ -330,6 +330,7 @@ NODE_DISPLAY_NAME_MAPPINGS = {
"MasksToMaskList": "Masks to Mask List",
"MaskListToMaskBatch": "Mask List to Masks",
"ImpactImageBatchToImageList": "Image batch to Image List",
"ImageListToImageBatch": "Image List to Image Batch",
"ImpactMakeImageList": "Make Image List",
"ImpactMakeImageBatch": "Make Image Batch",
"ImpactStringSelector": "String Selector",
+1 -1
View File
@@ -2,7 +2,7 @@ import configparser
import os
version = "V4.16.4"
version = "V4.16.5"
dependency_version = 14
+1 -1
View File
@@ -185,7 +185,7 @@ class SimpleDetectorForEach:
sub_threshold, sub_bbox_expansion, sam_mask_hint_threshold, False)
segs = core.segs_bitwise_and_mask(segs, mask)
elif segm_detector_opt is not None:
segm_segs = segm_detector_opt.detect(image, bbox_threshold, bbox_dilation, crop_factor, drop_size)
segm_segs = segm_detector_opt.detect(image, sub_threshold, sub_dilation, crop_factor, drop_size)
mask = core.segs_to_combined_mask(segm_segs)
segs = core.segs_bitwise_and_mask(segs, mask)