Skip to content

Commit

Permalink
Fix another instance of the same bug
Browse files Browse the repository at this point in the history
  • Loading branch information
lmmx authored and ericmintun committed Apr 10, 2023
1 parent 6325eb8 commit b028d54
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion segment_anything/automatic_mask_generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,7 @@ def postprocess_small_regions(
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,
)

Expand Down

0 comments on commit b028d54

Please sign in to comment.