Ubuntu 系统 cuda12.2 安装 MMDetection3D

DataBall 助力快速掌握数据集的信息和使用方式,会员享有 百种数据集,持续增加中。

需要更多数据资源和技术解决方案,知识星球: "DataBall - X 数据球(free)"

贵在坚持!


1、创建python虚拟环境

bash 复制代码
conda create -n mm3d python=3.8

2、进入python虚拟环境

bash 复制代码
conda activate mm3d

3、安装对应版本的 torch

bash 复制代码
pip install torch==2.1.0 torchvision torchaudio --extra-index-url https://download.pytorch.org/whl/cu122

4、安装 mmcv

bash 复制代码
pip install mmcv==2.1.0 -f https://download.openmmlab.com/mmcv/dist/cu122/torch2.1.0/index.html

5、安装 mmengine

bash 复制代码
pip install mmengine==0.9.0

6、安装 mmdet

bash 复制代码
pip install mmdet==3.2.0

7、克隆项目 mmdetection3d

bash 复制代码
git clone https://github.com/open-mmlab/mmdetection3d.git

8、进入项目文件夹

bash 复制代码
cd mmdetection3d/

9、编译安装依赖

bash 复制代码
pip install -r requirements/build.txt

10、安装 mmdetection3d

bash 复制代码
pip install -v -e .

11、安装工具 openmim

bash 复制代码
pip install -U openmim

12、下载预训练模型,并将模型保存在文件夹checkpoint

bash 复制代码
mim download mmdet3d --config pointpillars_hv_secfpn_8xb6-160e_kitti-3d-3class --dest checkpoint

13、测试 mmdet3d 安装是否成功

bash 复制代码
from mmdet3d.apis import init_model, inference_detector
print("build_detector imported successfully!")

如果程序执行正确,说明安装成功,准备好相应数据集,可以跑项目自带的demo示例。

助力快速掌握数据集的信息和使用方式。

数据可以如此美好!

相关推荐
Linux-lucky10 小时前
45-Linux学习之旅之防火墙与WEB加固
linux·前端·网络·学习·ubuntu
禁默10 小时前
启元 Q1 二次开发实践:Ubuntu 部署与仿真验证,从 PrimeConsole 到 ROS 2 Humble + RViz
linux·运维·ubuntu
skywalk816310 小时前
把 去也网站 从 Ubuntu 搬到 FreeBSD:一次 Service Jail + nginx 的部署实录
linux·运维·nginx·ubuntu·freebsd
在所不辞兄13 小时前
为什么学习率预热(warmup)能显著改善Transformer等大模型的训练稳定性?
人工智能·深度学习·神经网络·机器学习·智能仿真
武子康15 小时前
语音聊了十分钟,为什么不能拿转写分钟算费用?
人工智能·深度学习·agent
武天旭15 小时前
AI安全--AI大模型的隐私保护解析
人工智能·深度学习·安全·机器学习
tellmewhoisi20 小时前
深度学习0:数学知识:正态分布3(积分,指数函数积分公式)
人工智能·深度学习
tellmewhoisi20 小时前
深度学习0:数学知识:正态分布1
人工智能·深度学习·算法
李帅朋1 天前
INP-Former阅读笔记
笔记·深度学习·计算机视觉
AI源码1 天前
基于深度学习的日常服饰分类与推荐系统设计
人工智能·深度学习·分类