由于升级了anacoda + pytorch-cuda=11.7,导致原来的Yolov5模型不能正常运行,其中之一的报错如下,
AttributeError: module 'numpy' has no attribute 'int'
原因:
numpy.int
was deprecated in NumPy 1.20 and was removed in NumPy 1.24.
解决办法:
change it to numpy.int_
, or just int
.
由于升级了anacoda + pytorch-cuda=11.7,导致原来的Yolov5模型不能正常运行,其中之一的报错如下,
AttributeError: module 'numpy' has no attribute 'int'
原因:
numpy.int
was deprecated in NumPy 1.20 and was removed in NumPy 1.24.
解决办法:
change it to numpy.int_
, or just int
.