PeterH0323 / Smart_Construction

Base on YOLOv5 Head Person Helmet Detection on Construction Sites,基于目标检测工地安全帽和禁入危险区域识别系统,🚀😆附 YOLOv5 训练自己的数据集超详细教程🚀😆2021.3新增可视化界面❗❗
GNU General Public License v3.0
2.24k stars 469 forks source link

直接 run detect_visual.py时,出现错误,怎么处理 #38

Closed luoxingxuan2422440832 closed 3 years ago

luoxingxuan2422440832 commented 3 years ago

File "C:/Users/Z2422/Desktop/ceshi/Smart_Construction-master/detect_visual.py", line 254, in predict = YOLOPredict(parameter_device, parameter_weights, parameter_img_size) TypeError: init() takes 3 positional arguments but 4 were given

PeterH0323 commented 3 years ago

请再次确认文件名称

luoxingxuan2422440832 commented 3 years ago

哦,直接 run detect_visual.py时,出现错误,怎么处理

PeterH0323 commented 3 years ago

这个 detect_visual.py 是其他地方使用的,不是直接run的,请详细看 README.md

PeterH0323 commented 3 years ago

请拉取最新代码,我加入了一些说明,感谢您指出这个不足。请挑选 detect.py 或者 visual_interface.py 去执行。我先 close 掉这个 issue 了,后续如果需要请继续提出,谢谢您的关注和认可,如果帮到您请给我一个 🌟 。Thx !