当前位置:网站首页>Mmdetection installation problem
Mmdetection installation problem
2022-07-02 07:34:00 【chenf0】
Question 1 :Install MMDetection Report errors
pip install mmcv-full -f https://download.openmmlab.com/mmcv/dist/{
cu_version}/{
torch_version}/index.html
My environment
cu_version10.1 ( Input nvcc -V command , You can find CUDA Version number .)
torch_version1.10.2
mmcv-full is only compiled on PyTorch 1.x.0 because the compatibility
usually holds between 1.x.0 and 1.x.1. If your PyTorch version is
1.x.1, you can install mmcv-full compiled with PyTorch 1.x.0 and it usually works well.
https://github.com/open-mmlab/mmcv#installation
pip install mmcv-full -f https://download.openmmlab.com/mmcv/dist/cu101/torch1.10.0/index.html
There is an error 

Have a look PyTorch and CUDA Version combination , It is found that there is no corresponding version , Reduce torch edition , take 1.10.2 Reduced to 1.8.1
https://github.com/open-mmlab/mmcv/blob/master/README_zh-CN.md
The whole process :
#1.Prepare environment
conda create -n openmmlab python=3.7 -y
conda activate openmmlab
conda install pytorch=1.8.1 cudatoolkit=10.1 torchvision -c pytorch
#2.Install mmcv-full.
pip install mmcv-full -f https://download.openmmlab.com/mmcv/dist/cu101/torch1.8.0/index.html
#3.Install MMDetection.
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"
Question two fatal: unable to access…
stay git Problems encountered while downloading items :
fatal: unable to access 'https://github.com/open-mmlab/mmdetection.git/': gnutls_handshake() failed: A TLS packet with unexpected length was received.
Solution :
take https Change it to git Re execution
git clone git://github.com/open-mmlab/mmdetection.git
Question 3 :ImportError: cannot import name ‘PILLOW_VERSION’ from ‘PIL’
Method 2. According to the prompt in the last line of the error report , open function.py file , Use from PIL import Image, ImageOps, ImageEnhance, version In the replacement file from PIL import Image, ImageOps, ImageEnhance,PILLOW_VERSION This sentence .
Reference solutions :https://blog.csdn.net/Lee_lg/article/details/103901632
When cuda 11
https://pytorch.org/get-started/previous-versions/
conda install pytorch==1.7.0 torchvision==0.8.0 torchaudio==0.7.0 cudatoolkit=11.0 -c pytorch
Mirror image problem https://blog.csdn.net/weixin_49304494/article/details/122622134
边栏推荐
- 常见CNN网络创新点
- Regular expressions in MySQL
- 生成模型与判别模型的区别与理解
- Delete the contents under the specified folder in PHP
- 一份Slide两张表格带你快速了解目标检测
- PHP returns the corresponding key value according to the value in the two-dimensional array
- Drawing mechanism of view (II)
- Oracle apex 21.2 installation and one click deployment
- Calculate the difference in days, months, and years between two dates in PHP
- MapReduce concepts and cases (Shang Silicon Valley Learning Notes)
猜你喜欢

类加载器及双亲委派机制

SSM学生成绩信息管理系统

Oracle EBS database monitoring -zabbix+zabbix-agent2+orabbix

Using MATLAB to realize: Jacobi, Gauss Seidel iteration

MapReduce concepts and cases (Shang Silicon Valley Learning Notes)

Analysis of MapReduce and yarn principles

ssm+mysql实现进销存系统

架构设计三原则

离线数仓和bi开发的实践和思考

Sparksql data skew
随机推荐
ERNIE1.0 与 ERNIE2.0 论文解读
parser. parse_ Args boolean type resolves false to true
Delete the contents under the specified folder in PHP
A slide with two tables will help you quickly understand the target detection
Oracle EBS interface development - quick generation of JSON format data
SSM garbage classification management system
【信息检索导论】第一章 布尔检索
华为机试题
常见的机器学习相关评价指标
[introduction to information retrieval] Chapter 6 term weight and vector space model
Generate random 6-bit invitation code in PHP
Oracle APEX 21.2 installation et déploiement en une seule touche
spark sql任务性能优化(基础)
使用MAME32K进行联机游戏
The first quickapp demo
Transform the tree structure into array in PHP (flatten the tree structure and keep the sorting of upper and lower levels)
[introduction to information retrieval] Chapter 7 scoring calculation in search system
【模型蒸馏】TinyBERT: Distilling BERT for Natural Language Understanding
Interpretation of ernie1.0 and ernie2.0 papers
Oracle RMAN automatic recovery script (migration of production data to test)