arthurdjn commited on
Commit
412aeb3
·
verified ·
1 Parent(s): e49c318

Upload pointrcnn.kitti.openpcdet

Browse files
Files changed (2) hide show
  1. README.md +91 -0
  2. model.safetensors +3 -0
README.md ADDED
@@ -0,0 +1,91 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ library_name: torch-pointcloud
4
+ tags:
5
+ - point-cloud
6
+ - 3d
7
+ - pytorch
8
+ - torch-pointcloud
9
+ - pointrcnn
10
+ - object-detection
11
+ datasets:
12
+ - kitti
13
+ ---
14
+
15
+ # Model card for pointrcnn.kitti.openpcdet
16
+
17
+ A PointRCNN 3D object detection model (two-stage point-based proposal and refinement). Trained on KITTI.
18
+
19
+ ## Model Details
20
+
21
+ - **Model Type:** 3D object detection
22
+ - **Model Stats:**
23
+ - Params (M): 4.0
24
+ - Input channels: 4
25
+ - Classes: 3
26
+ - Features: 128
27
+ - **Dataset:** KITTI
28
+ - **Paper:** [PointRCNN: 3D Object Proposal Generation and Detection from Point Cloud](https://arxiv.org/abs/1812.04244)
29
+ - **Converted from:** [open-mmlab/OpenPCDet](https://github.com/open-mmlab/OpenPCDet) (Apache-2.0)
30
+ - **Library:** [torch-pointcloud](https://github.com/arthurdjn/pytorch-pointcloud)
31
+
32
+ ## Install
33
+
34
+ ```bash
35
+ pip install torch-pointcloud
36
+ ```
37
+
38
+ ## Usage
39
+
40
+ ```python
41
+ import torch
42
+ import torch_pointcloud as tp
43
+ from torch_pointcloud.utils.data import collate
44
+
45
+ model, info = tp.create_model(
46
+ "pointrcnn.kitti.openpcdet",
47
+ task="detection",
48
+ pretrained=True,
49
+ return_info=True,
50
+ )
51
+ model = model.eval()
52
+
53
+ # synthetic sample with the keys a dataset provides
54
+ num_points = 8192
55
+ sample = {
56
+ "pos": torch.randn(num_points, 3),
57
+ "intensity": torch.rand(num_points, 1),
58
+ }
59
+ data = info["transform"](sample)
60
+ data = collate([data])
61
+
62
+ with torch.no_grad():
63
+ out = model(data.get("x"), data["pos"], data["batch"])
64
+ ```
65
+
66
+ ## Feature extraction
67
+
68
+ ```python
69
+ with torch.no_grad():
70
+ features = model.forward_features(data.get("x"), data["pos"], data["batch"]) # 128 channels
71
+ ```
72
+
73
+ ## Citation
74
+
75
+ ```bibtex
76
+ @inproceedings{shi2019pointrcnn,
77
+ title = {PointRCNN: 3D Object Proposal Generation and Detection from Point Cloud},
78
+ author = {Shaoshuai Shi and Xiaogang Wang and Hongsheng Li},
79
+ booktitle = {CVPR},
80
+ year = {2019}
81
+ }
82
+ ```
83
+
84
+ ```bibtex
85
+ @inproceedings{geiger2012kitti,
86
+ title = {Are we ready for Autonomous Driving? The {KITTI} Vision Benchmark Suite},
87
+ author = {Geiger, Andreas and Lenz, Philip and Urtasun, Raquel},
88
+ booktitle = {CVPR},
89
+ year = {2012}
90
+ }
91
+ ```
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6a7e3c3b2c7eadec3f108eec220acc5be002d437fe12c1903cff7a92520a22c3
3
+ size 16277588