当前位置:网站首页>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
边栏推荐
- Determine whether the version number is continuous in PHP
- SSM supermarket order management system
- 图片数据爬取工具Image-Downloader的安装和使用
- 解决万恶的open failed: ENOENT (No such file or directory)/(Operation not permitted)
- Point cloud data understanding (step 3 of pointnet Implementation)
- SSM personnel management system
- Interpretation of ernie1.0 and ernie2.0 papers
- ssm垃圾分类管理系统
- Error in running test pyspark in idea2020
- ssm超市订单管理系统
猜你喜欢
随机推荐
ssm+mysql实现进销存系统
Pyspark build temporary report error
Oracle RMAN semi automatic recovery script restore phase
JSP intelligent community property management system
中年人的认知科普
【Ranking】Pre-trained Language Model based Ranking in Baidu Search
机器学习理论学习:感知机
Huawei machine test questions
SSM personnel management system
ssm垃圾分类管理系统
使用Matlab实现:Jacobi、Gauss-Seidel迭代
ARP attack
Message queue fnd in Oracle EBS_ msg_ pub、fnd_ Application of message in pl/sql
One field in thinkphp5 corresponds to multiple fuzzy queries
Generate random 6-bit invitation code in PHP
JSP智能小区物业管理系统
基于onnxruntime的YOLOv5单张图片检测实现
view的绘制机制(二)
使用Matlab实现:幂法、反幂法(原点位移)
SSM garbage classification management system
![[tricks] whiteningbert: an easy unsupervised sentence embedding approach](/img/8e/3460fed55f2a21f8178e7b6bf77d56.png)







