报错解决
文章平均质量分 64
moegde
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
基于Yolov8在训练集基础上训练时,报错SyntaxError: ‘action‘ is not a valid YOLO argument.
在搭建好的虚拟环境中使用YOLOv8进行目标检测时,需要用数据集进行训练。在启动训练脚本时,遇到了报错SyntaxError: 'action' is not a valid YOLO argument. 原因是因为数据集和.yaml文件在命名时都包含有空格。结论:在yolov8的训练过程中,所涉及的文件和文件夹都不宜采用空格命名。原创 2025-04-03 17:40:12 · 914 阅读 · 0 评论 -
使用.py文件时遇到报错:TypeError: Plain typing.Self is not valid as type argument
在搭建好的虚拟环境中调用名为“main.py”的文件时遇到了报错:raise TypeError(fPlain {arg} is not valid as type argument)TypeError: Plain typing.Self is not valid as type argument。解决方案是将报错的参数改为None即可。原创 2025-04-05 16:36:04 · 980 阅读 · 3 评论 -
基于Yolov8调用训练好的模型时,报错:‘yolo‘不是内部或外部命令,也不是可运行的程序
在调用训练好的YOLOv8模型对图像或视频文件进行检测时,报错:'yolo'不是内部或外部命令,也不是可运行的程序。该报错的本质上是因为在搭建好的虚拟环境内找不到一个可执行的“yolo.exe”文件。因此,我们要找到“yolo.exe”这个可执行文件,将其放到虚拟环境下。原创 2025-04-03 14:40:29 · 1495 阅读 · 0 评论 -
基于Yolov8在训练集基础上训练时,报错UnpicklingError: Weights only load failed.
在torch.load()中添加“, weights_only=False”,能够解决pytorch2.6.0及以上版本可能遇到的UnpicklingError: Weights only load failed. 报错。原创 2025-04-02 21:59:56 · 4599 阅读 · 7 评论 -
安装labelimg时,报错Could not find a version ……和ERROR: No matching distribution found for labelImg
在安装labelimg时,遇到了报错ERROR: Could not find a version that satisfies the requirement labelimg (from versions: none)和ERROR: No matching distribution found for labelimg。解决方案:关闭网络代理,使用国内镜像源(如清华源)下载。原创 2025-04-01 10:59:14 · 536 阅读 · 1 评论
分享