# MMDetection3D安裝與測試 本來是用win進行安裝,後來被說服了,再改用ubuntu進行使用。 ## 下載 MMDetection3D: ### 總安裝流程 [mmdetection3d/docs/zh_cn/getting_started.md](https://github.com/open-mmlab/mmdetection3d/blob/master/docs/zh_cn/getting_started.md) **(建議先對齊下列三個(CUDA、torch、MMCV)的版本再安裝,不要用他的方式直接安裝)** ### 安裝cuda 首先安裝驅動、並對照安裝CUDA11.6(CuDNN不用) [Ubuntu 20.04 安裝深度學習環境(Nvidia驅動、CUDA 10+CuDNN 7.6.5)](https://hackmd.io/@RinKu1998/B1MpzO3sD) 多cuda版本切換 [ubuntu多版本cuda切換](https://qiyuan-z.github.io/2022/01/04/Ubuntu%E5%A4%9A%E7%89%88%E6%9C%ACcuda%E5%AE%89%E8%A3%85%E4%B8%8E%E5%88%87%E6%8D%A2/) 可能遇到問題: [Ubuntu操作学习(三) 服务器安装不同cuda版本](https://www.codeleading.com/article/6639714047/) [解決 tmp 空間不足問題](https://wbkuo.pixnet.net/blog/post/40353890-%E8%A7%A3%E6%B1%BA-tmp-%E7%A9%BA%E9%96%93%E4%B8%8D%E8%B6%B3%E5%95%8F%E9%A1%8C) [Low disk space on Filesystem root despite having plenty of space in `home`](https://askubuntu.com/questions/1396769/low-disk-space-on-filesystem-root-despite-having-plenty-of-space-in-home)(遇到這個建議重裝os了QQ) ### 安裝torch 安裝相對應CUDA版本的torch [Pytorch官網](https://pytorch.org/) 以下是我安裝的般本:  ### 安裝MMCV 下載相對應CUDA和torch的MMCV [MMCV安裝](https://mmcv.readthedocs.io/en/latest/get_started/installation.html)  ## 測試: 利用以下程式碼進行測試  ``` python demo/pcd_demo.py demo/data/kitti/kitti_000008.bin configs/second/hv_second_secfpn_6x8_80e_kitti-3d-car.py checkpoints/hv_second_secfpn_6x8_80e_kitti-3d-car_20200620_230238-393f000c.pth ``` 在後面再加上 --show 就可以把標記後的圖片顯示出來。 ``` python demo/pcd_demo.py demo/data/kitti/kitti_000008.bin configs/second/hv_second_secfpn_6x8_80e_kitti-3d-car.py checkpoints/hv_second_secfpn_6x8_80e_kitti-3d-car_20200620_230238-393f000c.pth --show ``` 結果: 
×
Sign in
Email
Password
Forgot password
or
By clicking below, you agree to our
terms of service
.
Sign in via Facebook
Sign in via Twitter
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
New to HackMD?
Sign up