Skip to content

Latest commit

 

History

History
48 lines (27 loc) · 1.8 KB

README.md

File metadata and controls

48 lines (27 loc) · 1.8 KB

we should download https://download.openmmlab.com/mmdetection3d/v1.0.0_models/pgd/pgd_r101_caffe_fpn_gn-head_3x4_4x_kitti-mono3d/pgd_r101_caffe_fpn_gn-head_3x4_4x_kitti-mono3d_20211022_102608-8a97533b.pth

and copy to root folder

/////////////////////////////////////////////////////////////////////////////////

i used gpt and from here

https://mmdetection3d.readthedocs.io/en/latest/user_guides/inference.html#monocular-3d-demo

I read this file demo/mono_det_demo.py and try to run it without passing parameters like image address in a py file in body of it and we are try to change it to run many images in a loop

and based on this https://mmdetection3d.readthedocs.io/en/latest/user_guides/inference.html

this is sample to run

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


also here we have a pkl file that used for storing some Infos https://github.com/open-mmlab/mmdetection3d/blob/fe25f7a51d36e3702f961e198894580d83c4387b/demo/mono_det_demo.py#L14

here is a sample for reading pkl file (pkl files used for saveing data in binary format and is popular in python) import pickle

#pkl file path file_path = 'demo/data/kitti/000008.pkl'

#Open and readomg .pkl file with open(file_path, 'rb') as f: data = pickle.load(f)

#showing pkl file print(data)