Fix another instance of the same bug
This commit is contained in:
1 parent
6325eb8512
commit
b028d54358
1 file changed
+1
-1
@@ -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,
|
||||
)
|
||||
|
||||
|
||||
Reference in new issue
Block a user