创建有python和pytorch的环境
conda create -n detpro python=3.8conda activate detproconda install pytorch==1.12.1 torchvision==0.13.1 torchaudio==0.12.1 cudatoolkit=10.2 -c pytorch
按照readme安装
pip install -r requirements/build.txtpip install -e .pip install git+https://github.com/openai/CLIP.gitpip uninstall pycocotools -ypip uninstall mmpycocotools -ypip install mmpycocotoolspip install git+https://github.com/lvis-dataset/lvis-api.gitpip install mmcv-full==1.2.5 -f https://download.openmmlab.com/mmcv/dist/cu110/torch1.7.0/index.html