当前位置:网站首页>Detectron2 installation method
Detectron2 installation method
2022-07-04 17:34:00 【weixin_ forty-four million three hundred and twenty-three thous】
install detectron2
install detectron2 Methods , The official tutorial :Installation — detectron2 0.6 documentation
The first method :Build Detectron2 from Source
Official source code :
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 ...Be careful : If you download first detectron2, Method of reinstallation , Do not download after cd detectron2, Otherwise, there will be no “step.py” Error of .
My environment is CUDA:11.6, pytorch:1.10.2
Install in the first way , There will be CUDA And torch Version mismatch . An error is as follows :

The second method :Install Pre-Built Detectron2 (Linux only)
Know your own CUDA Version and torch After version , Using the second method is faster , And it's not easy to make mistakes , I installed it in this way .
My environment is CUDA:11.6, pytorch:1.10.2, I chose CUDA==10.2, torch==1.10.

success !


边栏推荐
- Kunming Third Ring Road Closure project will pass through these places. Is there one near your home?
- 《吐血整理》保姆级系列教程-玩转Fiddler抓包教程(2)-初识Fiddler让你理性认识一下
- 电子宠物小狗-内部结构是什么?
- 关于nacos启动时防火墙开启8848的坑
- The Ministry of human resources and Social Security announced the new construction occupation
- R语言plotly可视化:plotly可视化互相重叠的直方图(historgram)、并在直方图的顶部边缘使用geom_rug函数添加边缘轴须图Marginal rug plots
- 整理混乱的头文件,我用include what you use
- Is it safe to open an account online
- [HCIA continuous update] overview of WLAN workflow
- Is it safe for CITIC Securities to open an account online? Is the account opening fee charged
猜你喜欢

利用win10计划任务程序定时自动运行jar包

防火墙基础透明模式部署和双机热备

detectron2安装方法

How to implement a delay queue?

码农版隐秘的角落:作为开发者最讨厌的5件

With an annual income of more than 8 million, he has five full-time jobs. He still has time to play games

Which domestic cloud management platform manufacturer is good in 2022? Why?
Redis 的内存淘汰策略和过期删除策略的区别

Rainfall warning broadcast automatic data platform bwii broadcast warning monitor

La 18e Conférence internationale de l'IET sur le transport d'électricité en courant alternatif et en courant continu (acdc2022) s'est tenue avec succès en ligne.
随机推荐
第十八届IET交直流输电国际会议(ACDC2022)于线上成功举办
MVC模式和三层架构
动态规划股票问题对比
被PMP考试“折磨”出来的考试心得,值得你一览
What is low code development?
MD5加密的两种方式
RecastNavigation 之 Recast
网页游戏引擎
VSCode修改缩进不成功,一保存就缩进四个空格
C# 更加优质的操作MongoDB数据库
[Huawei HCIA continuous update] SDN and FVC
完美融入 Win11 风格,微软全新 OneDrive 客户端抢先看
[HCIA continuous update] overview of WLAN workflow
Load test practice of pingcode performance test
Display opencv drawn pictures on MFC picture control control
VB cannot access database stocks
Master the use of auto analyze in data warehouse
安信证券属于什么档次 开户安全吗
【HCIA持续更新】WLAN概述与基本概念
La 18e Conférence internationale de l'IET sur le transport d'électricité en courant alternatif et en courant continu (acdc2022) s'est tenue avec succès en ligne.