Fix another instance of the same bug
This commit is contained in:
parent
6325eb8512
commit
b028d54358
@ -357,7 +357,7 @@ class SamAutomaticMaskGenerator:
|
||||
keep_by_nms = batched_nms(
|
||||
boxes.float(),
|
||||
torch.as_tensor(scores),
|
||||
torch.zeros(len(boxes)), # categories
|
||||
torch.zeros_like(boxes[:,0]), # categories
|
||||
iou_threshold=nms_thresh,
|
||||
)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user