Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Bw-bestperf
SAM
Commits
b028d543
Commit
b028d543
authored
Apr 06, 2023
by
Louis Maddox
Committed by
ericmintun
Apr 10, 2023
Browse files
Fix another instance of the same bug
parent
6325eb85
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
segment_anything/automatic_mask_generator.py
segment_anything/automatic_mask_generator.py
+1
-1
No files found.
segment_anything/automatic_mask_generator.py
View file @
b028d543
...
...
@@ -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
,
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment