The tracker function does not work it shows an error as module "'numpy' has no attribute 'float'." #253
Unanswered
AarizZafar
asked this question in
Q&A
Replies: 1 comment
|
I have the same problem and I tried to use float instead of np.float but the same error still exists |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
def detections2boxes(detections: Detections) -> np.ndarray:
return np.hstack((detections.xyxy, detections.confidence[:, np.newaxis]))
tracks = byte_tracker.update(
output_results = detections2boxes(detections),
img_info=frame.shape,
img_size=frame.shape
)
np.floatwas a deprecated alias for the builtinfloat. To avoid this error in existing code, usefloatby itself. Doing this will not modify any behavior and is safe. If you specifically wanted the numpy scalar type, usenp.float64here.The aliases was originally deprecated in NumPy 1.20; for more details and guidance see the original release note at:
https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations
All reactions