【bytetrack ——demo_track.py『AttributeError: module ‘numpy‘ has no attribute ‘float‘.】

bytetrack ——demo_track.py『AttributeError: module 'numpy' has no attribute 'float'.』

错误::::AttributeError: module ‘numpy’ has no attribute ‘float’.

(bytetrack) ls@ls:~/ByteTrack$ python tools/demo_track.py video -f exps/example/mot/yolox_s_mix_det.py -c ./models/bytetrack_s_mot17.pth.tar --path ./videos/palace.mp4 --fp16 --fuse --save_result
Traceback (most recent call last):
File “tools/demo_track.py”, line 14, in
from yolox.tracker.byte_tracker import BYTETracker
File “/home/ls/ByteTrack/yolox/tracker/byte_tracker.py”, line 10, in
from yolox.tracker import matching
File “/home/ls/ByteTrack/yolox/tracker/matching.py”, line 7, in
from cython_bbox import bbox_overlaps as bbox_ious
File “src/cython_bbox.pyx”, line 12, in init cython_bbox
File “/home/ls/anaconda3/envs/bytetrack/lib/python3.8/site-packages/numpy/init.py”, line 305, in getattr
raise AttributeError(former_attrs[attr])
AttributeError: module ‘numpy’ has no attribute ‘float’.
np.float was a deprecated alias for the builtin float. To avoid this error in existing code, use float by itself. Doing this will not modify any behavior and is safe. If you specifically wanted the numpy scalar type, use np.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

numpy版本过高

修改::

pip uninstall numpy
pip install numpy==1.23.5

  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 2
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值