【win10-cpu-Yolov7】Install yolov7 on windows10 and use cpu to run demo

0 Preface

yolov7 official website: https://github.com/WongKinYiu/yolov7
B station operation video: https://www.bilibili.com/video/BV1UG4y1b7sx/Next
: [win10-cpu-Yolov7] Windows10 (cpu) yolov7 running video demo

1. Install Anaconda

Miniconda Tsinghua source: https://mirrors.tuna.tsinghua.edu.cn/anaconda/miniconda/

Miniconda3-py38_4.9.2-Windows-x86_64.exe:https://mirrors.tuna.tsinghua.edu.cn/anaconda/miniconda/Miniconda3-py38_4.9.2-Windows-x86_64.exe

2. Create a virtual environment

create:

conda create -n yolov7 python=3.7 -y

activation:

conda activate yolov7

exit environment (optional)

conda deactivate

3. Install yolov7

git clone https://gitee.com/YFwinston/yolov7.git
cd yolov7

4. Download weight

Download yolov7x.pt: https://share.weiyun.com/wreukCC0

5. Installation depends on requirements.txt

pip install -r requirements.txt -i https://pypi.tuna.tsinghua.edu.cn/simple

6. Run detect.py

python detect.py --weights yolov7x.pt --conf 0.25 --img-size 640 --source inference/images/horses.jpg

result:

insert image description here

insert image description here

insert image description here

refer to

win10-cpu-Yolov7: https://blog.csdn.net/langzizhixin/article/details/126211940

Guess you like

Origin blog.csdn.net/WhiffeYF/article/details/127583796