当前位置:网站首页>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。
成功!
边栏推荐
- NoSQL之readis配置与优化(终章)
- Can you really use MySQL explain?
- ~89 deformation translation
- Research Report on market supply and demand and strategy of tetramethylpyrazine industry in China
- Blood spitting finishing nanny level series tutorial - play Fiddler bag grabbing tutorial (2) - first meet fiddler, let you have a rational understanding
- How to decrypt worksheet protection password in Excel file
- Years of training, towards Kata 3.0! Enter the safe container experience out of the box | dragon lizard Technology
- China tall oil fatty acid market trend report, technical dynamic innovation and market forecast
- Is it safe to open an account online
- js中的数组筛选fliter
猜你喜欢
Embedded software architecture design - function call
被PMP考试“折磨”出来的考试心得,值得你一览
leetcode:421. 数组中两个数的最大异或值
overflow:auto与felx结合的用法
"Cannot initialize Photoshop because the temporary storage disk is full" graphic solution
Capvision Rongying's prospectus in Hong Kong was "invalid": it was strictly questioned by the CSRC and required supplementary disclosure
嵌入式软件架构设计-函数调用
祝贺Artefact首席数据科学家张鹏飞先生荣获 Campaign Asia Tech MVP 2022
Start by counting
世界环境日 | 周大福用心服务推动减碳环保
随机推荐
Research Report on market supply and demand and strategy of tetramethylpyrazine industry in China
一图看懂ThreadLocal
leetcode:421. 数组中两个数的最大异或值
Inside and outside: flow chart drawing elementary: six common mistakes
Implement graph data construction task based on check point
Application and Optimization Practice of redis in vivo push platform
Accounting regulations and professional ethics [6]
《吐血整理》保姆级系列教程-玩转Fiddler抓包教程(2)-初识Fiddler让你理性认识一下
程序员怎么才能提高代码编写速度?
散列表
科普达人丨一文看懂阿里云的秘密武器“神龙架构”
System.currentTimeMillis() 和 System.nanoTime() 哪个更快?别用错了!
Practice: fabric user certificate revocation operation process
Application of clock wheel in RPC
~88 running people practice
China tall oil fatty acid market trend report, technical dynamic innovation and market forecast
leetcode刷题目录总结
Detailed process of DC-2 range construction and penetration practice (DC range Series)
表单传递时,如何隐式将值传过去
基于check-point机制的任务状态回滚和数据分块任务