We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Prediction.confidence
float
numpy.ndarray
1 parent 2553261 commit 054edbfCopy full SHA for 054edbf
wpodnet/backend.py
@@ -120,5 +120,5 @@ def predict(self, image: Image.Image) -> Prediction:
120
return Prediction(
121
image=image,
122
bounds=bounds.astype(np.int32),
123
- confidence=max_prob
+ confidence=max_prob.item()
124
)
0 commit comments