Skip to content

Commit

Permalink
Update return type hint of predict function
Browse files Browse the repository at this point in the history
  • Loading branch information
derekray311511 authored and ericmintun committed Apr 12, 2023
1 parent 40df6e4 commit d4ecc68
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion segment_anything/predictor.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ def predict(
mask_input: Optional[np.ndarray] = None,
multimask_output: bool = True,
return_logits: bool = False,
) -> Tuple[torch.Tensor, torch.Tensor, torch.Tensor]:
) -> Tuple[np.ndarray, np.ndarray, np.ndarray]:
"""
Predict masks for the given input prompts, using the currently set image.
Expand Down

0 comments on commit d4ecc68

Please sign in to comment.