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 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
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.float
was a deprecated alias for the builtinfloat
. To avoid this error in existing code, usefloat
by itself. Doing this will not modify any behavior and is safe. If you specifically wanted the numpy scalar type, usenp.float64
here.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
Beta Was this translation helpful? Give feedback.
All reactions