[go: nahoru, domu]

Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support DeepSparse Model Detection Results #297

Merged
merged 14 commits into from
Aug 18, 2023
Prev Previous commit
Next Next commit
make results arrays
  • Loading branch information
mwitiderrick committed Aug 18, 2023
commit bfdbedea6b941d645f6e827c93c7234b28362536
4 changes: 2 additions & 2 deletions supervision/detection/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -322,8 +322,8 @@ def from_deepsparse(cls, deepsparse_results) -> Detections:
```
"""
return cls(
xyxy=deepsparse_results.boxes[0],
confidence=deepsparse_results.scores[0],
xyxy=np.array(deepsparse_results.boxes[0]),
confidence=np.array(deepsparse_results.scores[0]),
)

@classmethod
Expand Down