基础:
GPU(我的是3080)+win10
安装顺序:
vs2019(这里不用加什么模块)
G++/gcc(大于5.0)
GPU驱动(我的是511.xx)
Cuda+Cudnn(我的是 11.0 + for11.x)
conda安装(这里随便)
开始建立虚拟环境:
建一个你自己的环境:conda create -n env_name python=3.6
activate my_env 进入环境
conda install package_name 安装包
Conda 还会自动为你安装依赖项。例如,scipy
依赖于 numpy
,因为它使用并需要 numpy
。如果你只安装 scipy
(conda install scipy
),则 conda 还会安装 numpy
(如果尚未安装的话)。
库文件如下:
这里注意先使用conda安装,不行用pip,再不行用setup.py安装
主要的库文件:
pip(要更新,最新的目前23好像);wheel; pytorch(和cuda版本保持一致);
cython; fvcore; matplotlib;numpy; opencv-python; pycocotools;
再安装detectron2就可以了。下面附上全部库:
全部的库文件:
# Name Version Build Channel
absl-py 1.0.0 pypi_0 pypi
antlr4-python3-runtime 4.8 pypi_0 pypi
blas 2.113 mkl conda-forge
blas-devel 3.9.0 13_win64_mkl conda-forge
ca-certificates 2022.2.1 haa95532_0 defaults
cachetools 4.2.4 pypi_0 pypi
certifi 2021.10.8 pypi_0 pypi
charset-normalizer 2.0.12 pypi_0 pypi
cloudpickle 2.0.0 pypi_0 pypi
colorama 0.4.4 pyh9f0ad1d_0 conda-forge
cudatoolkit 11.1.1 heb2d755_10 conda-forge
cycler 0.10.0 py36_0 https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free
cython 0.29.28 pypi_0 pypi
dataclasses 0.8 pyh787bdff_2 conda-forge
detectron2 0.4 dev_0
freetype 2.8.1 ha63716d_1 conda-forge
future 0.18.2 pypi_0 pypi
fvcore 0.1.3.post20210310 pypi_0 pypi
google-auth 2.6.0 pypi_0 pypi
google-auth-oauthlib 0.4.6 pypi_0 pypi
grpcio 1.44.0 pypi_0 pypi
icu 58.2 ha925a31_3 defaults
idna 3.3 pypi_0 pypi
importlib-metadata 4.8.3 pypi_0 pypi
importlib-resources 5.4.0 pypi_0 pypi
intel-openmp 2022.0.0 h57928b3_3663 conda-forge
iopath 0.1.9 py36 iopath
jpeg 9b hb83a4c4_2 defaults
kiwisolver 1.3.1 py36hd77b12b_0 defaults
libblas 3.9.0 13_win64_mkl conda-forge
libcblas 3.9.0 13_win64_mkl conda-forge
liblapack 3.9.0 13_win64_mkl conda-forge
liblapacke 3.9.0 13_win64_mkl conda-forge
libpng 1.6.37 h1d00b33_2 conda-forge
libtiff 4.0.9 hf1753bf_1 conda-forge
libuv 1.43.0 h8ffe710_0 conda-forge
libzlib 1.2.11 h8ffe710_1013 conda-forge
m2w64-gcc-libgfortran 5.3.0 6 conda-forge
m2w64-gcc-libs 5.3.0 7 conda-forge
m2w64-gcc-libs-core 5.3.0 7 conda-forge
m2w64-gmp 6.1.0 2 conda-forge
m2w64-libwinpthread-git 5.0.0.4634.697f757 2 conda-forge
markdown 3.3.6 pypi_0 pypi
matplotlib 2.2.2 py36h153e9ff_1 defaults
mkl 2022.0.0 h0e2418a_796 conda-forge
mkl-devel 2022.0.0 h57928b3_797 conda-forge
mkl-include 2022.0.0 h0e2418a_796 conda-forge
msys2-conda-epoch 20160418 1 conda-forge
ninja 1.7.2 0 https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free
numpy 1.19.5 py36h4b40d73_2 conda-forge
oauthlib 3.2.0 pypi_0 pypi
olefile 0.46 pyh9f0ad1d_1 conda-forge
omegaconf 2.1.1 pypi_0 pypi
opencv-python 4.5.5.62 pypi_0 pypi
openssl 1.1.1m h2bbff1b_0 defaults
pillow 7.1.0 pypi_0 pypi
pip 21.3.1 pypi_0 pypi
portalocker 1.4.0 py_0 conda-forge
protobuf 3.19.4 pypi_0 pypi
pyasn1 0.4.8 pypi_0 pypi
pyasn1-modules 0.2.8 pypi_0 pypi
pycocotools 2.0 pypi_0 pypi
pydot 1.4.2 pypi_0 pypi
pyparsing 3.0.7 pypi_0 pypi
pypiwin32 223 pypi_0 pypi
pyqt 5.9.2 py36h6538335_2 defaults
python 3.6.13 h3758d61_0 defaults
python-dateutil 2.6.1 py36_0 https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free
python_abi 3.6 2_cp36m conda-forge
pytorch 1.8.0 py3.6_cuda11.1_cudnn8_0 pytorch
pytz 2017.2 py36_0 https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free
pywin32 303 pypi_0 pypi
pyyaml 5.4.1 py36h68aa20f_1 conda-forge
qt 5.9.7 vc14h73c81de_0 defaults
requests 2.27.1 pypi_0 pypi
requests-oauthlib 1.3.1 pypi_0 pypi
rsa 4.8 pypi_0 pypi
setuptools 59.6.0 pypi_0 pypi
sip 4.19.8 py36h6538335_0 defaults
six 1.10.0 py36_0 https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free
sqlite 3.37.2 h2bbff1b_0 defaults
tabulate 0.8.9 pyhd8ed1ab_0 conda-forge
tbb 2021.5.0 h2d74725_0 conda-forge
tensorboard 2.8.0 pypi_0 pypi
tensorboard-data-server 0.6.1 pypi_0 pypi
tensorboard-plugin-wit 1.8.1 pypi_0 pypi
termcolor 1.1.0 py_2 conda-forge
tk 8.6.12 h8ffe710_0 conda-forge
torchaudio 0.8.0 py36 pytorch
torchvision 0.9.0 py36_cu111 pytorch
tornado 4.5.2 py36_0 https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free
tqdm 4.63.0 pyhd8ed1ab_0 conda-forge
typing_extensions 4.1.1 pyha770c72_0 conda-forge
urllib3 1.26.8 pypi_0 pypi
vc 14.2 h21ff451_1 defaults
vs2015_runtime 14.27.29016 h5e58377_2 defaults
werkzeug 2.0.3 pypi_0 pypi
wheel 0.29.0 py36_0 https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free
wincertstore 0.2 py36_0 https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free
yacs 0.1.8 pyhd8ed1ab_0 conda-forge
yaml 0.2.5 h8ffe710_2 conda-forge
zipp 3.6.0 pypi_0 pypi
zlib 1.2.11 h8ffe710_1013 conda-forge