SAM: Fix labels not being used in predict mode. (#16642)
Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
This commit is contained in:
parent
c773f27653
commit
7d6528a41a
1 changed files with 1 additions and 0 deletions
|
|
@ -196,6 +196,7 @@ class Predictor(BasePredictor):
|
|||
bboxes = self.prompts.pop("bboxes", bboxes)
|
||||
points = self.prompts.pop("points", points)
|
||||
masks = self.prompts.pop("masks", masks)
|
||||
labels = self.prompts.pop("labels", labels)
|
||||
|
||||
if all(i is None for i in [bboxes, points, masks]):
|
||||
return self.generate(im, *args, **kwargs)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue