YOLOv5运行过程中的报错记录

目录

AttributeError: module 'numpy' has no attribute 'int'.

Intel MKL FATAL ERROR: Cannot load mkl_intel_thread.2.dll.

ModuleNotFoundError: No module named 'pyparsing'

Ignore distutils configs in setup.cfg due to encoding errors.


AttributeError: module 'numpy' has no attribute 'int'.

解决参考:AttributeError: module numpy has no attribute int .报错解决方案_小恶魔饿了的博客-CSDN博客

Intel MKL FATAL ERROR: Cannot load mkl_intel_thread.2.dll.

解决参考:Intel MKL FATAL ERROR Cannot load mkl_intel_thread.dll_鸭梨的药丸哥的博客-CSDN博客

ModuleNotFoundError: No module named 'pyparsing'

解决:

pip install pyparsing

Ignore distutils configs in setup.cfg due to encoding errors.

解决参考:WARNING: Ignore distutils configs in setup.cfg due to encoding errors._hllyzms的博客-CSDN博客

成功运行train时的输出日志因为过长所以写在另一文章中(使用了wandb)

YOLOv5 train输出日志_weixin_54470372的博客-CSDN博客

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
要使用yolov5进行体积检测,你可以按照以下步骤进行操作: 1. 根据yolov5的README指南,下载yolov5s.pt模型文件,并准备好待检测的图像。 2. 在Python环境运行detect.py脚本,使用以下命令进行检测: ``` python detect.py --source inference/images --weights yolov5s.pt --conf 0.25 ``` 这将使用yolov5s.pt模型对指定路径下的图像进行检测,并设置置信度阈值为0.25。你可以根据需要调整阈值。 如果你想在加载模型之前注册自定义层YoloV5Focus,以避免报错找不到该层,你可以使用以下代码: ``` ncnn::Net yolov5; yolov5.opt.use_vulkan_compute = true; yolov5.register_custom_layer("YoloV5Focus", YoloV5Focus_layer_creator); yolov5.load_param("yolov5s-opt.param"); yolov5.load_model("yolov5s-opt.bin"); ``` 这段代码使用ncnn库加载yolov5模型前,先注册了自定义层YoloV5Focus。这样,在加载模型时就能正确识别并使用该层。请确保你已经正确设置了ncnn库和相关依赖。 综上所述,你可以使用yolov5和ncnn库实现体积检测。希望这些信息能对你有所帮助。<span class="em">1</span><span class="em">2</span><span class="em">3</span> #### 引用[.reference_title] - *1* *2* *3* [详细记录u版YOLOv5目标检测ncnn实现](https://blog.csdn.net/woshicver/article/details/109699322)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 100%"] [ .reference_list ]
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值