当前位置:网站首页>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。
成功!
边栏推荐
- Accounting regulations and professional ethics [8]
- Overflow: the combination of auto and Felx
- 矿产行业商业供应链协同系统解决方案:构建数智化供应链平台,保障矿产资源安全供应
- Hash table
- 科普达人丨一文看懂阿里云的秘密武器“神龙架构”
- DC-2靶场搭建及渗透实战详细过程(DC靶场系列)
- Go language loop statement (under Lesson 10)
- System. Currenttimemillis() and system Nanotime (), which is faster? Don't use it wrong!
- 手里10万元存款买什么理财产品收益最高?
- Accounting regulations and professional ethics [7]
猜你喜欢
一图看懂ThreadLocal
World Environment Day | Chow Tai Fook serves wholeheartedly to promote carbon reduction and environmental protection
51 single chip microcomputer temperature alarm based on WiFi control
C# 更加优质的操作MongoDB数据库
周大福践行「百周年承诺」,真诚服务推动绿色环保
Transformer中position encoding实践
"Cannot initialize Photoshop because the temporary storage disk is full" graphic solution
照明行业S2B2B解决方案:高效赋能产业供应链,提升企业经济效益
Software Engineer vs Hardware Engineer
智慧物流園區供應鏈管理系統解决方案:數智化供應鏈賦能物流運輸行業供應鏈新模式
随机推荐
Implement graph data construction task based on check point
建筑建材行业经销商协同系统解决方案:赋能企业构建核心竞争力
中位数与次序统计量
ONgDB图数据库与Spark的集成
Application of clock wheel in RPC
Li Kou today's question -1200 Minimum absolute difference
NoSQL之readis配置与优化(终章)
Go语言循环语句(第10课下)
智慧物流園區供應鏈管理系統解决方案:數智化供應鏈賦能物流運輸行業供應鏈新模式
. Net applications consider x64 generation
Market trend report, technical innovation and market forecast of China's hair repair therapeutic apparatus
【Go ~ 0到1 】 第六天 文件的读写与创建
APOC custom functions and procedures
tp配置多数据库
APOC自定义函数和过程
基于wifi控制的51单片机温度报警器
Accounting regulations and professional ethics [8]
周大福践行「百周年承诺」,真诚服务推动绿色环保
力扣今日题-1200. 最小绝对差
China's roof ladder market trend report, technological innovation and market forecast