一,环境安装
创建虚拟环境
conda create -n bytetrack python=3.8
安装requirements
pip install -r requirements.txt -i https://pypi.tuna.tsinghua.edu.cn/simple
可能报错,解决办法,安装numpy
安装
pytorch
pip install torch==1.12.0+cu113 torchvision==0.13.0+cu113 --extra-index-url https://download.pytorch.org/whl/cu113 -i https://pypi.tuna.tsinghua.edu.cn/simple
1.1更改setup.py
with open("README.md", "r") as f:
修改为
with open("README.md", "r", encoding='utf-8') as f:
执行: python setup.py develop