一、环境搭建:
具体场景:conda和docker均可
安装依赖:
1.pip install torch==1.11.0+cu113 torchvision==0.12.0+cu113 torchaudio==0.11.0 --extra-index-url https://download.pytorch.org/whl/cu113
2.opencv-python numpy
3.conda install -c conda-forge pycocotools
4.pip install mmcv-full -f https://download.openmmlab.com/mmcv/dist/cu113/torch1.11.0/index.html
AI训练环境:
git clone https://github.com/open-mmlab/mmdetection.git
cd mmdetection
pip install -r requirements/build.txt
pip install -v -e . # or "python setup.py develop"
AI推理环境:
pip install mmdet
网友评论