z1069614715 / objectdetection_script

一些关于目标检测的脚本的改进思路代码,详细请看readme.md
5.08k stars 460 forks source link

高版本numpy中存在函数问题 #30

Closed li0k05j closed 1 year ago

li0k05j commented 1 year ago

colors = np.random.uniform(0, 255, size=(len(model_names), 3)).astype(np.int) 这句代码在高于1.2版本的numpy中会出现错误AttributeError: module 'numpy' has no attribute 'int'. 将np.int改为int可以解决问题