当前位置:   article > 正文

YOLOV9运行自己的数据集(小白ERROR合集)_yolov9错误

yolov9错误

1.AttributeError: 'FreeTypeFont' object has no attribute 'getsize'

原因:可能是新版本删除了该getsize功能,降级后可解决该问题

解决方式:

pip install Pillow==9.5

2.P、R、mAP等都为0

按照网上的方式改变.half()等尝试后结果都还是这样,没有任何起色。

后来调整了数据集,没有使用txt文件的方式寻找data的下载路径后解决了此问题,大家可以参考一下。(也可能我哪里写的不对,有大神看到的话欢迎指导)

解决方式:直接使用绝对地址,放弃相对地址

原:

path: /home/xxx/yolov9/datasets/dataset/  # dataset root dir
train: train.txt  # train images (relative to 'path') 118287 images
val: val.txt  # val images (relative to 'path') 5000 images

现:

#path: /home/xxx/yolov9/datasets/dataset/  # dataset root dir


train: /home/xxx/yolov9/datasets/dataset/images/train  # train images (relative to 'path') 118287 images


val: /home/xxx/yolov9/datasets/dataset/images/val  # val images (relative to 'path') 5000 images

文件结构是酱紫:

3.RuntimeError: CUDA out of memory. Tried to allocate 400.00 MiB (GPU 0; 10.91 GiB total capacity; 5.44 GiB already allocated; 149.38 MiB free; 5.73 GiB reserved in total by PyTorch) If reserved memory is >> allocated memory try setting max_split_size_mb to avoid fragmentation.  See documentation for Memory Management and PYTORCH_CUDA_ALLOC_CONF

原因:显卡太小导致的越界问题

解决方法:调小batch_size

4.目前还未解决的问题:WARNING ⚠️ TensorBoard graph visualization failure Only tensors, lists, tuples of tensors, or dictionary of tensors can be output from traced functions

已经尝试过tensorboard==2.9.0、ensorboard==2.10.1、tensorboard==2.12.0,均失败。

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/菜鸟追梦旅行/article/detail/312780
推荐阅读
相关标签
  

闽ICP备14008679号