原文 Prebuilt wheels provided via 3rd party repository · facebookresearch/detectron2 · Discussion #5200
众所周知,detectron2已经停止更新了,虽然安装的方法很多,但以下不失为一种最方便的方法
简言之就是直接使用如下链接安装detectron2
pip install --extra-index-url https://miropsota.github.io/torch_packages_builder detectron2==<版本>+<哈希(选填)>pt<PyTorch版本><cpu/cuda版本/rocm版本>
比如安装最新的d2,使用PyTorch 2.4.1和CUDA 12.1就是:
pip install --extra-index-url https://miropsota.github.io/torch_packages_builder detectron2==0.6+2a420edpt2.4.1cu121
安装v0.6下的d2,使用PyTorch 2.4.1和CUDA 12.1就是:
pip install --extra-index-url https://miropsota.github.io/torch_packages_builder detectron2==0.6+pt2.4.1cu121