YOLOX Demo Run

环境:

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

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值