前言
这个坑有点多,配置环境花费了好久。其实这个环境我已经配过三四次了,只不过每次都是在不同电脑上操作,现在有些小激动,以此纪念。纯属小白,如有错误请指正。
硬件说明
笔记本:RTX3060,本机cuda11.3版本,win11
detectron2和AdelaiDet的安装要求
- Linux or macOS with Python ≥ 3.7
- PyTorch ≥ 1.8 and torchvision that matches the PyTorch installation. Install them together at pytorch.org to make sure of this
- OpenCV is optional but needed by demo and visualization
安装步骤
1、配置基础环境
conda create -n detectron2 python=3.8 #conda创建虚拟环境
conda activate detectron2 #激活环境
nvcc --version #查看cuda版本