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

module 'numpy' has no attribute 'float' #54

Open
weifuqiang007 opened this issue Apr 13, 2024 · 0 comments
Open

module 'numpy' has no attribute 'float' #54

weifuqiang007 opened this issue Apr 13, 2024 · 0 comments

Comments

@weifuqiang007
Copy link

D:\conda\envs\pytorch\python.exe E:\renliuliangjiance\unbox_yolov5_deepsort_counting\main.py
Fusing layers...

Traceback (most recent call last):
File "E:\renliuliangjiance\unbox_yolov5_deepsort_counting\main.py", line 83, in
list_bboxs = tracker.update(bboxes, im)
File "E:\renliuliangjiance\unbox_yolov5_deepsort_counting\tracker.py", line 72, in update
outputs = deepsort.update(xywhs, confss, image)
File "E:\renliuliangjiance\unbox_yolov5_deepsort_counting\deep_sort\deep_sort\deep_sort.py", line 31, in update
detections = [Detection(bbox_tlwh[i], conf, features[i]) for i,conf in enumerate(confidences) if conf>self.min_confidence]
File "E:\renliuliangjiance\unbox_yolov5_deepsort_counting\deep_sort\deep_sort\deep_sort.py", line 31, in
detections = [Detection(bbox_tlwh[i], conf, features[i]) for i,conf in enumerate(confidences) if conf>self.min_confidence]
File "E:\renliuliangjiance\unbox_yolov5_deepsort_counting\deep_sort\deep_sort\sort\detection.py", line 30, in init
self.tlwh = np.asarray(tlwh, dtype=np.float)
File "D:\conda\envs\pytorch\lib\site-packages\numpy_init_.py", line 284, in getattr
raise AttributeError("module {!r} has no attribute "
AttributeError: module 'numpy' has no attribute 'float'

能不能不改numpy的版本啊。我把这个np.float换成int可以吗

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant