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

成功!


边栏推荐
- C implementation defines a set of intermediate SQL statements that can be executed across libraries
- Smart Logistics Park supply chain management system solution: digital intelligent supply chain enables a new supply chain model for the logistics transportation industry
- Can you really use MySQL explain?
- S2b2b solution for lighting industry: efficiently enable the industrial supply chain and improve the economic benefits of enterprises
- Accounting regulations and professional ethics [7]
- 世界环境日 | 周大福用心服务推动减碳环保
- 【Go ~ 0到1 】 第六天 文件的读写与创建
- L1-072 scratch lottery
- Task state rollback and data blocking tasks based on check point mechanism
- Application of clock wheel in RPC
猜你喜欢

overflow:auto与felx结合的用法

Transformer中position encoding实践

Yanwen logistics plans to be listed on Shenzhen Stock Exchange: it is mainly engaged in international express business, and its gross profit margin is far lower than the industry level

容器环境minor gc异常频繁分析

go-micro教程 — 第二章 go-micro v3 使用Gin、Etcd

矿产行业商业供应链协同系统解决方案:构建数智化供应链平台,保障矿产资源安全供应

Principle and general steps of SQL injection

世界环境日 | 周大福用心服务推动减碳环保

C# 服务器日志模块

Object.keys()的用法
随机推荐
Accounting regulations and professional ethics [10]
2022PMP考试基本情况详情了解
线程池的使用和原理
China's plastic processing machinery market trend report, technological innovation and market forecast
电子元器件B2B商城系统开发:赋能企业构建进销存标准化流程实例
Cypher task design and task locking mechanism of isomorphic and heterogeneous graphs
C# 服务器日志模块
中银证券网上开户安全吗?
[Chongqing Guangdong education] National Open University spring 2019 1248 public sector human resource management reference questions
Market trend report, technical innovation and market forecast of taillight components in China
【云原生】服务网格是什么“格”?
Understand Alibaba cloud's secret weapon "dragon architecture" in the article "science popularization talent"
Visual studio 2019 (localdb) mssqllocaldb SQL Server 2014 database version is 852 and cannot be opened. This server supports 782
智慧物流园区供应链管理系统解决方案:数智化供应链赋能物流运输行业供应链新模式
基于check-point实现图数据构建任务
PyTorch深度学习快速入门教程
Height residual method
51 single chip microcomputer temperature alarm based on WiFi control
Research Report on market supply and demand and strategy of China's plastics and polymer industry
Market trend report, technical innovation and market forecast of tetrabromophthalate (pht4 diol) in China