视频地址:5分钟,带你复现YOLOv12进行目标检测_哔哩哔哩_bilibili

5分钟,带你复现YOLOv12进行目标检测

仓库地址:git@github.com:sunsmarterjie/yolov12.git

conda创建Python 3.11环境

source ~/.bashrc 
conda update 
conda conda create -n yolov12 python=3.11 
conda activate yolov12

部署环境

git clone git@github.com:sunsmarterjie/yolov12.git
cd yolov12
wget https://github.com/Dao-AILab/flash-attention/releases/download/v2.7.3/flash_attn-2.7.3+cu11torch2.2cxx11abiFALSE-cp311-cp311-linux_x86_64.whl
pip install -r requirements.txt -i https://pypi.tuna.tsinghua.edu.cn/simple

pip install -e .

下载yolov12s pre-trained的模型

wget https://github.com/sunsmarterjie/yolov12/releases/download/turbo/yolov12s.pt

测试demo

python app.py

登陆http://127.0.0.1:7860/

更多推荐