当前位置:网站首页>MMDetection安装问题
MMDetection安装问题
2022-07-02 06:26:00 【chenf0】
问题一:Install MMDetection报错
pip install mmcv-full -f https://download.openmmlab.com/mmcv/dist/{
cu_version}/{
torch_version}/index.html
本人环境
cu_version10.1 (输入nvcc -V命令,即可查询到CUDA版本号。)
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
出现报错
查看了一下 PyTorch 和 CUDA 版本组合,发现没有我们对应的版本,降低torch版本,将1.10.2降为1.8.1
https://github.com/open-mmlab/mmcv/blob/master/README_zh-CN.md
整体步骤:
#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"
问题二 fatal: unable to access…
在git下载项目时遇到问题:
fatal: unable to access 'https://github.com/open-mmlab/mmdetection.git/': gnutls_handshake() failed: A TLS packet with unexpected length was received.
解决方案:
将https改为git重新执行
git clone git://github.com/open-mmlab/mmdetection.git
问题三:ImportError: cannot import name ‘PILLOW_VERSION’ from ‘PIL’
方法2.根据报错的最后一行提示,打开function.py文件,使用from PIL import Image, ImageOps, ImageEnhance, version 替换文件中from PIL import Image, ImageOps, ImageEnhance,PILLOW_VERSION这句。
参考解决方案:https://blog.csdn.net/Lee_lg/article/details/103901632
当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
镜像问题https://blog.csdn.net/weixin_49304494/article/details/122622134
边栏推荐
- RMAN incremental recovery example (1) - without unbacked archive logs
- Changes in foreign currency bookkeeping and revaluation general ledger balance table (Part 2)
- 【MEDICAL】Attend to Medical Ontologies: Content Selection for Clinical Abstractive Summarization
- ssm+mysql实现进销存系统
- Using MATLAB to realize: power method, inverse power method (origin displacement)
- 使用Matlab实现:弦截法、二分法、CG法,求零点、解方程
- 一个中年程序员学习中国近代史的小结
- Feeling after reading "agile and tidy way: return to origin"
- 矩阵的Jordan分解实例
- Explanation of suffix of Oracle EBS standard table
猜你喜欢
ssm超市订单管理系统
使用 Compose 实现可见 ScrollBar
How to efficiently develop a wechat applet
TCP attack
读《敏捷整洁之道:回归本源》后感
PointNet理解(PointNet实现第4步)
【调参Tricks】WhiteningBERT: An Easy Unsupervised Sentence Embedding Approach
Three principles of architecture design
【Ranking】Pre-trained Language Model based Ranking in Baidu Search
【信息检索导论】第三章 容错式检索
随机推荐
Open failed: enoent (no such file or directory) / (operation not permitted)
读《敏捷整洁之道:回归本源》后感
view的绘制机制(二)
Conversion of numerical amount into capital figures in PHP
Oracle EBS ADI development steps
使用 Compose 实现可见 ScrollBar
[introduction to information retrieval] Chapter 3 fault tolerant retrieval
Oracle general ledger balance table GL for foreign currency bookkeeping_ Balance change (Part 1)
如何高效开发一款微信小程序
Yaml file of ingress controller 0.47.0
[paper introduction] r-drop: regulated dropout for neural networks
Ding Dong, here comes the redis om object mapping framework
Calculate the total in the tree structure data in PHP
Two dimensional array de duplication in PHP
使用Matlab实现:Jacobi、Gauss-Seidel迭代
parser. parse_ Args boolean type resolves false to true
【Torch】解决tensor参数有梯度,weight不更新的若干思路
spark sql任务性能优化(基础)
软件开发模式之敏捷开发(scrum)
Illustration of etcd access in kubernetes