Browse Source

Fix another instance of the same bug

pull/159/head
Louis Maddox 2 years ago committed by ericmintun
parent
commit
b028d54358
  1. 2
      segment_anything/automatic_mask_generator.py

2
segment_anything/automatic_mask_generator.py

@ -357,7 +357,7 @@ class SamAutomaticMaskGenerator:
keep_by_nms = batched_nms( keep_by_nms = batched_nms(
boxes.float(), boxes.float(),
torch.as_tensor(scores), torch.as_tensor(scores),
torch.zeros(len(boxes)), # categories torch.zeros_like(boxes[:,0]), # categories
iou_threshold=nms_thresh, iou_threshold=nms_thresh,
) )

Loading…
Cancel
Save