当前位置:网站首页>detectron2安装方法
detectron2安装方法
2022-07-04 15:16:00 【weixin_44323744】
安装detectron2
安装detectron2的方法,官方教程:Installation — detectron2 0.6 documentation
第一种方法:Build Detectron2 from Source
官方大大的源码:
python -m pip install 'git+https://github.com/facebookresearch/detectron2.git'
# (add --user if you don't have permission)
# Or, to install it from a local clone:
git clone https://github.com/facebookresearch/detectron2.git
python -m pip install -e detectron2
# On macOS, you may need to prepend the above commands with a few environment variables:
CC=clang CXX=clang++ ARCHFLAGS="-arch x86_64" python -m pip install ...注意:如果采用先下载detectron2,再安装的方法,下载之后不要 cd detectron2,否则会出现找不到“step.py”的错误。
我的环境是CUDA:11.6, pytorch:1.10.2
采用第一种方式安装,会出现CUDA与torch版本不匹配。报错如下:

第二种方法:Install Pre-Built Detectron2 (Linux only)
知道自己的CUDA版本和torch版本后,采用第二种方法更快,而且不易出错,我就是采用的这种方法安装完成的。
我的环境是CUDA:11.6, pytorch:1.10.2,我选择的是CUDA==10.2, torch==1.10。

成功!


边栏推荐
- PyTorch深度学习快速入门教程
- China tall oil fatty acid market trend report, technical dynamic innovation and market forecast
- Research Report on surgical otorhinolaryngology equipment industry - market status analysis and development prospect prediction
- Oracle监听器Server端与Client端配置实例
- Understand Alibaba cloud's secret weapon "dragon architecture" in the article "science popularization talent"
- 昆明三环闭合工程将经过这些地方,有在你家附近的吗?
- Implement graph data construction task based on check point
- 多年锤炼,迈向Kata 3.0 !走进开箱即用的安全容器体验之旅| 龙蜥技术
- How can programmers improve the speed of code writing?
- Application of clock wheel in RPC
猜你喜欢

Go development: how to use go singleton mode to ensure the security of high concurrency of streaming media?
Application of clock wheel in RPC

Solution du système de gestion de la chaîne d'approvisionnement du parc logistique intelligent

NoSQL之readis配置与优化(终章)

Embedded software architecture design - function call

Blood spitting finishing nanny level series tutorial - play Fiddler bag grabbing tutorial (2) - first meet fiddler, let you have a rational understanding

51 single chip microcomputer temperature alarm based on WiFi control

电子元器件B2B商城系统开发:赋能企业构建进销存标准化流程实例

DC-2靶场搭建及渗透实战详细过程(DC靶场系列)

新的职业已经出现,怎么能够停滞不前 ,人社部公布建筑新职业
随机推荐
Object. Usage of keys()
《吐血整理》保姆级系列教程-玩转Fiddler抓包教程(2)-初识Fiddler让你理性认识一下
Why do you say that the maximum single table of MySQL database is 20million? Based on what?
祝贺Artefact首席数据科学家张鹏飞先生荣获 Campaign Asia Tech MVP 2022
System.currentTimeMillis() 和 System.nanoTime() 哪个更快?别用错了!
leetcode:421. 数组中两个数的最大异或值
Research Report on market supply and demand and strategy of surgical stapler industry in China
中银证券网上开户安全吗?
China's roof ladder market trend report, technological innovation and market forecast
对人胜率84%,DeepMind AI首次在西洋陆军棋中达到人类专家水平
安信证券排名 网上开户安全吗
Median and order statistics
C implementation defines a set of intermediate SQL statements that can be executed across libraries
overflow:auto与felx结合的用法
APOC custom functions and procedures
Firebird experience summary
如何实现一个延时队列 ?
Configuration instance of Oracle listener server and client
昆明三环闭合工程将经过这些地方,有在你家附近的吗?
Statistical learning: logistic regression and cross entropy loss (pytoch Implementation)