文章目录
AttributeError: module ‘numpy’ has no attribute ‘unit8’
- AttributeError: module 'numpy' has no attribute 'unit8'
- DeprecationWarning: 'np.float' is a deprecated alias for the builtin 'float'
Numpy开发遇到报错:AttributeError: module ‘numpy’ has no attribute ‘unit8’
经排查,下面的一行代码出了异常:
mask2 = np.where((mask1 == 2