当前位置:   article > 正文

yolov9训练步骤_win10 yolov9教程

win10 yolov9教程

GIT:

[https://github.com/WongKinYiu/yolov9]

window10+cuda10.2 本地测试:

1、conda

安装和创建虚拟环境
conda create --name yolov9 python=3.8
conda activate yolov9
在这里插入图片描述

2、更新pip版本

python -m pip install  -i https://pypi.doubanio.com/simple/ --upgrade pip
python -m pip install  -i https://pypi.doubanio.com/simple/ --upgrade setuptools
  • 1
  • 2

3、环境安装:

nvidia-smi
  • 1

在这里插入图片描述

pip install torch==1.9.0+cu102  torchvision==0.10.0+cu102  torchaudio==0.9.0  -f https://download.pytorch.org/whl/torch_stable.html
  • 1
pip install -r requirements.txt -i https://pypi.doubanio.com/simple/
  • 1

验证torch是cuda版本

import torch
torch.cuda.is_available()  # cuda是否可用;
torch.cuda.device_count()  # 返回gpu数量;
torch.cuda.get_device_name(0)  # 返回gpu名字,设备索引默认从0开始;
torch.cuda.current_device()  # 返回当前设备索引;
  • 1
  • 2
  • 3
  • 4
  • 5

在这里插入图片描述
解决显卡不支持问题;https://blog.csdn.net/weixin_47880303/article/details/124988738
torch下载地址:https://download.pytorch.org/whl/torch_stable.html

二、配置和运行

问题1
在这里插入图片描述

降版本 Pillow 为9.5

配置:

1、data.yaml
在这里插入图片描述在这里插入图片描述
2、模型选用yolov9-c,新建weights文件夹和model文件

在这里插入图片描述
本地需要设置batchsize为2才能训练起来。
在这里插入图片描述

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

闽ICP备14008679号