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
本文来自互联网用户投稿,文章观点仅代表作者本人,不代表本站立场,不承担相关法律责任。如若转载,请注明出处。 如若内容造成侵权/违法违规/事实不符,请点击【内容举报】进行投诉反馈!
