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:
@@ -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",
|
||||
|
||||
@@ -2,7 +2,7 @@ import configparser
|
||||
import os
|
||||
|
||||
|
||||
version = "V4.16.4"
|
||||
version = "V4.16.5"
|
||||
|
||||
dependency_version = 14
|
||||
|
||||
|
||||
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user