当前位置:网站首页>Mmdetection record of win10 installation
Mmdetection record of win10 installation
2022-07-18 07:05:00 【fegggye】
Related environments and dependencies :
1.CUDA10.0( namely nvcc, Download and install , Not conda install !!)
2.VS2017( Download and install , Support C++ compile )
3.pytorch=1.4.0=py3.7_cuda101_cudnn7_0
4.torchvision=0.5.0=py37_cu101
5.cudatoolkit=10.1.243=h74a9793_0
6.mmcv==0.2.16
#################################################################################################
install pipeline:
1. install CUDA10.0 (V10.0.130)
2. install vs2017( Microsoft official Community Edition )
3. install pytorch Of GPU edition (conda The installation will automatically install cudatoolkit)
conda create -n mmdet python=3.7 # Creating a virtual environment
activate mmdet
conda install pytorch=1.4.0=py3.7_cuda101_cudnn7_0
conda install torchvision=0.5.0=py37_cu1014. install cython,pycocotools
pip install cythonPycocotools This thing windows Installation needs https://github.com/philferriere/cocoapi Download and enter pythonAPI In the folder
Use python setup.py install
5. install mmcv
pip install mmcv==0.2.166. install mmdetection( I used it here SOLO Source code , be based on mmdetection1.0.0)
1) Download the source code ( Installation dependent )
git clone https://github.com/WXinlong/SOLO
cd SOLO
pip install -r requirements.txt2) Modify the compiled file :
1. take ~Lib\site-packages\torch\utils\cpp_extension.py in , all decode() It's all changed to decode("utf8","ignore")
2. modify setup.py In file extra_compile_args Related codes , increase cxx Of :"-DMS_WIN64","-MD"
Also is to def make_cuda_ext(name, module, sources) The entire function is changed to
def make_cuda_ext(name, module, sources):
return CUDAExtension(
name='{}.{}'.format(module, name),
sources=[os.path.join(*module.split('.'), p) for p in sources],
extra_compile_args={
'cxx': ["-DMS_WIN64","-MD"],
'nvcc': [
'-D__CUDA_NO_HALF_OPERATORS__',
'-D__CUDA_NO_HALF_CONVERSIONS__',
'-D__CUDA_NO_HALF2_OPERATORS__',
]
})3) Compile and install
python setup.py build_ext --inplace
python setup.py install develop###################################################################################################
Finally, a list of environment related libraries is attached (conda env export > requirements.yaml export ), For reference only
name: mmdet
channels:
- https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/pytorch
- https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main
- https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free
- https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
- https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/
- https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/pytorch/
- defaults
dependencies:
- blas=1.0=mkl
- ca-certificates=2020.6.24=0
- certifi=2020.6.20=py37_0
- cffi=1.14.0=py37h7a1dbc1_0
- cudatoolkit=10.1.243=h74a9793_0
- cython=0.29.21=py37ha925a31_0
- freetype=2.10.2=hd328e21_0
- icc_rt=2019.0.0=h0cc432a_1
- intel-openmp=2020.1=216
- jpeg=9b=hb83a4c4_2
- libpng=1.6.37=h2a8f88b_0
- libtiff=4.1.0=h56a325e_1
- lz4-c=1.9.2=h62dcd97_1
- mkl=2020.1=216
- mkl-service=2.3.0=py37hb782905_0
- mkl_fft=1.1.0=py37h45dec08_0
- mkl_random=1.1.1=py37h47e9c7a_0
- msys2-conda-epoch=20160418=1
- ninja=1.7.2=0
- numpy=1.18.5=py37h6530119_0
- numpy-base=1.18.5=py37hc3f5095_0
- olefile=0.46=py37_0
- openssl=1.1.1g=he774522_0
- pip=20.1.1=py37_1
- pycparser=2.20=py_2
- python=3.7.7=h81c818b_4
- pytorch=1.4.0=py3.7_cuda101_cudnn7_0
- setuptools=49.2.0=py37_0
- six=1.15.0=py_0
- sqlite=3.32.3=h2a8f88b_0
- tk=8.6.10=he774522_0
- torchvision=0.5.0=py37_cu101
- vc=14.1=h0510ff6_4
- vs2015_runtime=14.16.27012=hf0eaf9b_3
- wheel=0.34.2=py37_0
- wincertstore=0.2=py37_0
- xz=5.2.5=h62dcd97_0
- zlib=1.2.11=h62dcd97_4
- zstd=1.4.5=h04227a9_0
- pip:
- addict==2.2.1
- albumentations==0.4.6
- asynctest==0.13.0
- atomicwrites==1.4.0
- attrs==19.3.0
- chardet==3.0.4
- codecov==2.1.8
- colorama==0.4.3
- coverage==5.2.1
- cycler==0.10.0
- decorator==4.4.2
- flake8==3.8.3
- idna==2.10
- imagecorruptions==1.1.0
- imageio==2.9.0
- imgaug==0.4.0
- importlib-metadata==1.7.0
- iniconfig==1.0.0
- isort==5.2.2
- jaraco-classes==3.1.0
- jaraco-collections==3.0.0
- jaraco-functools==3.0.1
- jaraco-structures==2.0
- jaraco-text==3.2.0
- jaraco-ui==2.0.1
- jaraco-windows==5.0.0
- kiwisolver==1.2.0
- kwarray==0.5.9
- matplotlib==3.3.0
- mccabe==0.6.1
- mmcv==0.2.16
- mmdet==1.0.0+unknown
- more-itertools==8.4.0
- networkx==2.4
- opencv-python==4.1.2.30
- ordered-set==4.0.2
- packaging==20.4
- pandas==1.1.0
- path==15.0.0
- path-py==12.5.0
- pillow==6.2.2
- pluggy==0.13.1
- py==1.9.0
- pycocotools==2.0
- pycodestyle==2.6.0
- pyflakes==2.2.0
- pyparsing==2.4.7
- pytest==6.0.1
- pytest-cov==2.10.0
- pytest-runner==5.2
- python-dateutil==2.8.1
- pytz==2020.1
- pywavelets==1.1.1
- pyyaml==5.3.1
- requests==2.24.0
- scikit-image==0.17.2
- scipy==1.5.2
- shapely==1.7.0
- terminaltables==3.1.0
- tifffile==2020.7.24
- toml==0.10.1
- ubelt==0.9.1
- urllib3==1.25.10
- xdoctest==0.13.0
- yapf==0.30.0
- zipp==3.1.0
prefix: D:\Miniconda3\envs\mmdet
边栏推荐
猜你喜欢

抖音带火的这种无线领夹麦克风,央视主持人都在用

PD-QC-AFC多协议诱骗芯片《LDR6328S》

Mysql高版本报sql_mode=only_full_group_by异常

The game console type-C scheme supports data transmission while charging

2021年全国职业院校技能大赛(中职组)网络安全竞赛试题(9)思路

Compileflow Taobao Workflow Engine

9. MySQL -- JDBC入门

Private cloud ranking of Tangmen concealed weapons

Excel import / export annotation General Edition

PD QC诱骗取电应用IC《乐得瑞LDR6328S》广泛应用于各大小家电
随机推荐
String 长度有限制吗?是多少?
select/poll/epoll的区别
What is base?
示波器使用概念记录
Typora changes text color and line breaks
深度学习-损失函数
The IP address of the database is stored. What data type is used
Private cloud ranking of Tangmen concealed weapons
C language Chapter 8 array
复杂链表的复制
typec显示器解决方案大全LDR6290单C口桌面式显示器解决方案
Type-c充电OTG芯片(LDR6028S)
PHP大量数据循环时内存耗尽问题的解决方案
H264 decoding sequence display sequence reference sequence
机器学习最重要的一张图,如何选择模型 sklearn结构图
箭头函数的使用
Redis installation & startup
[interview must brush 101] hash
完全讲清楚stats.t.interval的用法
TP5在线显示图片出现乱码问题