Skip to content

Commit

Permalink
Fix Prediction.confidence should be float but not numpy.ndarray #7
Browse files Browse the repository at this point in the history
  • Loading branch information
Pandede authored Sep 18, 2023
1 parent 2553261 commit 054edbf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wpodnet/backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,5 +120,5 @@ def predict(self, image: Image.Image) -> Prediction:
return Prediction(
image=image,
bounds=bounds.astype(np.int32),
confidence=max_prob
confidence=max_prob.item()
)

0 comments on commit 054edbf

Please sign in to comment.