服务器初次跑YOLO数据集总结

服务器跑模型时候遇见的部分问题

一、Pycharm

1、torch版本号相比于YOLO版本号过高

现象:Runtime:result type float can‘t be cast to the desired output type long int

解决:使用高版本torch训练yolo-fastV2报错result type float can‘t be cast to the desired output type long int_Y_Hungry的博客-CSDN博客

2、YOLOV5源码中的字体服务器没有,可能下载失败

现象:Downloading https://ultralytics.com/assets/Arial.ttf to …

解决:01]_问题多多快快改的博客-CSDN博客

3、Pycharm里面Interpreter(解释器)的配置

现象:提示你进行配置,否则不能跑文件

解决:

①现在Conda中创建一个自己的虚拟环境(这里我直接复制的别人的环境hh),然后在自己的环境里运行一下requirements.txt文件

pip install -r requirements.txt

②在Pycharm的配置里面选择虚拟环境中配置好的解释器

注意:这里你刚配置好虚拟环境时候解释器之后要重启Pycharm一下才可以

二、YOLO需要修改的地方

在这里插入图片描述

猜你喜欢

转载自blog.csdn.net/a919964703/article/details/127290957