Skip to content

Commit 054edbf

Browse files
authored
Fix Prediction.confidence should be float but not numpy.ndarray #7
1 parent 2553261 commit 054edbf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

wpodnet/backend.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -120,5 +120,5 @@ def predict(self, image: Image.Image) -> Prediction:
120120
return Prediction(
121121
image=image,
122122
bounds=bounds.astype(np.int32),
123-
confidence=max_prob
123+
confidence=max_prob.item()
124124
)

0 commit comments

Comments
 (0)