-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathInstall mmdetection3d.txt
100 lines (40 loc) · 2.96 KB
/
Install mmdetection3d.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
python -c 'import torch; print(torch.cuda.is_available())'
python -c 'import torch;print(torch.__version__);print(torch.version.cuda)'
conda env remove --name openmmlab
-------------------------------------------------
https://mmdetection3d.readthedocs.io/en/latest/get_started.html
https://github.com/open-mmlab/OpenMMLabCourse/tree/main/codes/MMDet3d_tutorials
https://github.com/open-mmlab/mmdetection3d/issues/1413#issuecomment-1921378739
-------------------------------------------------
--------------------------------------------------------------------------------------------------------------
------------------------------------------------- START HERE -------------------------------------------------
--------------------------------------------------------------------------------------------------------------
conda create --name openmmlab python=3.8 -y
conda activate openmmlab
------------------------------------------------- Install CUDA
https://developer.nvidia.com/cuda-11-8-0-download-archive?target_os=Linux&target_arch=x86_64&Distribution=Ubuntu&target_version=22.04&target_type=deb_local
** Restart After install CUDA
------------------------------------------------- Install Pytorch
pip install torch==2.1.2 torchvision==0.16.2 torchaudio==2.1.2 --index-url https://download.pytorch.org/whl/cu118
-------------------------------------------------
pip install -U openmim
mim install mmengine
-- injashe ba document pishfarze khodesh fargh dare , ke az ruye in yad gereftam -> https://github.com/open-mmlab/mmdetection3d/issues/1413#issuecomment-1921378739
-- va inja in link ro sakhtam bar asase pytorcham va cuda -> https://github.com/open-mmlab/mmdetection3d/issues/1413#issuecomment-1921378739
pip install mmcv==2.1.0 -f https://download.openmmlab.com/mmcv/dist/cu118/torch2.1/index.html
mim install 'mmdet>=3.0.0'
-------------------------------------------------
git clone https://github.com/open-mmlab/mmdetection3d.git -b dev-1.x
cd mmdetection3d
pip install -v -e .
-------------------------------------------------
mim download mmdet3d --config pointpillars_hv_secfpn_8xb6-160e_kitti-3d-car --dest .
-------------------------------------------------
python demo/pcd_demo.py demo/data/kitti/000008.bin pointpillars_hv_secfpn_8xb6-160e_kitti-3d-car.py hv_pointpillars_secfpn_6x8_160e_kitti-3d-car_20220331_134606-d42d15ed.pth --show
-------------------------------------------------
-------------------------------------------------
------------------------------------------------- for 2D
https://mmdetection3d.readthedocs.io/en/latest/user_guides/inference.html#monocular-3d-demo
download "Example on KITTI data using [PGD model]
*** mirim tu pushee ke repo ro git clone kardim
python demo/mono_det_demo.py demo/data/kitti/000008.png demo/data/kitti/000008.pkl configs/pgd/pgd_r101-caffe_fpn_head-gn_4xb3-4x_kitti-mono3d.py pgd_r101_caffe_fpn_gn-head_3x4_4x_kitti-mono3d_20211022_102608-8a97533b.pth --show --cam-type CAM2 --print-result