Skip to content

Commit

Permalink
Update ZSL outputs parser
Browse files Browse the repository at this point in the history
  • Loading branch information
sovrasov committed Aug 15, 2024
1 parent 3e9853d commit 9d490f8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/otx/core/model/visual_prompting.py
Original file line number Diff line number Diff line change
Expand Up @@ -1041,9 +1041,9 @@ def _customize_outputs( # type: ignore[override]
if len(predicted_mask.mask) == 0:
continue
_masks.append(np.stack(predicted_mask.mask, axis=0))
_used_points_scores = np.stack(predicted_mask.points, axis=0)
_prompts.append(_used_points_scores[:, :2])
_scores.append(_used_points_scores[:, 2])
_used_points_scores = np.stack(predicted_mask.scores, axis=0)
_prompts.append(np.stack(predicted_mask.points, axis=0))
_scores.append(_used_points_scores)
_labels.append(np.array([label] * len(_used_points_scores)))

if len(_masks) == 0:
Expand Down

0 comments on commit 9d490f8

Please sign in to comment.