环境:
Windows Power
(一些环境配置好的前提下,比如wsl 配置,miniconda 安装)
参考:(17条消息) YOLOX-部署与测试_小林爱学习99的博客-CSDN博客_yolox部署
一、YOLOX环境搭建
首先下载YOLOX
git clone https://codechina.csdn.net/mirrors/Megvii-BaseDetection/YOLOX.git
创建conda环境
>>conda create -n YOLOX python=3.8
>>conda activate YOLOX
>>conda create -n YOLOX python=3.8
>>conda activate YOLOX
>>pip install -i https://pypi.tuna.tsinghua.edu.cn/simple/ numpy
>>pip install -i https://pypi.tuna.tsinghua.edu.cn/simple/ torch==1.8.0
>>pip install -i https://pypi.tuna.tsinghua.edu.cn/simple/ opencv_python
>>pip install -i https://pypi.tuna.tsinghua.edu.cn/simple/ loguru
>>pip install -i https://pypi.tuna.tsinghua.edu.cn/simple/ scikit-image
>>pip install -i https://pypi.tuna.tsinghua.edu.cn/simple/ tqdm
>>pip install -i https://pypi.tuna.tsinghua.edu.cn/simple/ torchvision
>>pip install -i https://pypi.tuna.tsinghua.edu.cn/simple/ Pillow
>>pip install -i https://pypi.tuna.tsinghua.edu.cn/simple/ thop
>>pip install -i https://pypi.tuna.tsinghua.edu.cn/simple/ ninja
>>pip install -i https://pypi.tuna.tsinghua.edu.cn/simple/ tabulate
>>pip install -i https://pypi.tuna.tsinghua.edu.cn/simple/ tensorboard
>>pip install -i https://pypi.tuna.tsinghua.edu.cn/simple/ onnx==1.8.1
>>pip install -i https://pypi.tuna.tsinghua.edu.cn/simple/ onnxruntime==1.8.0
>>pip install -i https://pypi.tuna.tsinghua.edu.cn/simple/ onnx-simplifier==0.3.5
>>pip install -i https://pypi.tuna.tsinghua.edu.cn/simple/ cython
>>pip install "git+https://github.com/philferriere/cocoapi.git#egg=pycocotools&subdirectory=PythonAPI"
跑个demo:(将tools/ 目录下的demo.py 拷贝出来到YOLOX/目录下,从github上下载对应的模型文件)
>>python demo.py image -n yolox-m -c ./yolox_m.pth --path assets/dog.jpg --conf 0.3 --nms 0.65 --tsize 640 --save_result
YOLOX 阅读参考
https://blog.csdn.net/sinat_33486980/article/details/119560250
YOLOV5 阅读参考
https://blog.csdn.net/Q1u1NG/article/details/108093525
YOLO 系列阅读参考:https://zhuanlan.zhihu.com/p/186014243?utm_source=cn.wiz.note