YOLOX运行

YOLOX github地址:
https://github.com/Megvii-BaseDetection/YOLOX

环境配置:
pip install torch
pip install numpy
pip3 install -v -e .(或者python setup.py develop)

下载yolox_s.pth到本地

运行命令参考:
https://blog.csdn.net/qq_43515934/article/details/123610689

问题1:
 File "/home/anaconda3/envs/YOLOX/lib/python3.7/site-packages/torchvision/models/maxvit.py", line 3, in
    from typing import Any, Callable, List, Optional, OrderedDict, Sequence, Tuple
ImportError: cannot import name 'OrderedDict' from 'typing'
解决:maxvit.py文件中import OrderedDict删掉,替换为import collections,调用的是collections.OrderedDic
参考:https://blog.csdn.net/wangshenhouren/article/details/127656258

注意:检测视频文件名需要包含数字0-9

特别鸣谢Aspiraris

你可能感兴趣的:(python,linux,开发语言)