当前位置:网站首页>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。

成功!


边栏推荐
- [Acwing] 58周赛 4489. 最长子序列
- L1-072 scratch lottery
- Four point probe Industry Research Report - market status analysis and development prospect prediction
- Inside and outside: flow chart drawing elementary: six common mistakes
- Jump table instance
- Accounting regulations and professional ethics [7]
- 安信证券网上开户安全吗 开户收费吗
- 基于check-point实现图数据构建任务
- ONgDB图数据库与Spark的集成
- 基于check-point机制的任务状态回滚和数据分块任务
猜你喜欢
随机推荐
基于check-point机制的任务状态回滚和数据分块任务
Research Report on market supply and demand and strategy of tetramethylpyrazine industry in China
China's plastic processing machinery market trend report, technological innovation and market forecast
Accounting regulations and professional ethics [10]
安信证券网上开户安全吗 开户收费吗
DIY a low-cost multi-functional dot matrix clock!
世界环境日 | 周大福用心服务推动减碳环保
Task state rollback and data blocking tasks based on check point mechanism
Application and Optimization Practice of redis in vivo push platform
Research Report on plastic recycling machine industry - market status analysis and development prospect forecast
Li Kou today's question -1200 Minimum absolute difference
Redis 的内存淘汰策略和过期删除策略的区别
Integration of ongdb graph database and spark
Unity interview questions (continuously updated)
51 single chip microcomputer temperature alarm based on WiFi control
egg. JS learning notes
. Net applications consider x64 generation
tp配置多数据库
MD5加密的两种方式
System.currentTimeMillis() 和 System.nanoTime() 哪个更快?别用错了!







