arthurdjn commited on
Commit
0c837b2
·
verified ·
1 Parent(s): 3e8616b

Upload pointnet2.scanobjectnn.openpoints

Browse files
Files changed (2) hide show
  1. README.md +107 -0
  2. model.safetensors +3 -0
README.md ADDED
@@ -0,0 +1,107 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: mit
3
+ library_name: torch-pointcloud
4
+ tags:
5
+ - point-cloud
6
+ - 3d
7
+ - pytorch
8
+ - torch-pointcloud
9
+ - pointnet2
10
+ - classification
11
+ datasets:
12
+ - scanobjectnn
13
+ model-index:
14
+ - name: pointnet2.scanobjectnn.openpoints
15
+ results:
16
+ - task:
17
+ type: point-cloud-classification
18
+ dataset:
19
+ name: ScanObjectNN
20
+ type: scanobjectnn
21
+ metrics:
22
+ - name: OA
23
+ type: accuracy
24
+ value: 86.16
25
+ ---
26
+
27
+ # Model card for pointnet2.scanobjectnn.openpoints
28
+
29
+ A PointNet++ point cloud classification model (hierarchical set abstraction). Trained on ScanObjectNN.
30
+
31
+ ## Model Details
32
+
33
+ - **Model Type:** Point cloud classification
34
+ - **Model Stats:**
35
+ - Params (M): 1.5
36
+ - Input channels: 4
37
+ - Classes: 15
38
+ - Features: 1024
39
+ - **Dataset:** ScanObjectNN
40
+ - **Metrics:** OA 86.16 (reference 86.2)
41
+ - **Paper:** [PointNet++: Deep Hierarchical Feature Learning on Point Sets in a Metric Space](https://arxiv.org/abs/1706.02413)
42
+ - **Converted from:** [guochengqian/PointNeXt](https://github.com/guochengqian/PointNeXt) (MIT)
43
+ - **Library:** [torch-pointcloud](https://github.com/arthurdjn/pytorch-pointcloud)
44
+
45
+ ## Install
46
+
47
+ ```bash
48
+ pip install torch-pointcloud
49
+ ```
50
+
51
+ ## Usage
52
+
53
+ ```python
54
+ import torch
55
+ import torch_pointcloud as tp
56
+ from torch_pointcloud.utils.data import collate
57
+
58
+ model, info = tp.create_model(
59
+ "pointnet2.scanobjectnn.openpoints",
60
+ task="classification",
61
+ pretrained=True,
62
+ return_info=True,
63
+ )
64
+ model = model.eval()
65
+
66
+ # synthetic sample with the keys a dataset provides
67
+ num_points = 8192
68
+ sample = {
69
+ "pos": torch.randn(num_points, 3),
70
+ }
71
+ data = info["transform"](sample)
72
+ data = collate([data])
73
+
74
+ with torch.no_grad():
75
+ logits = model(data.get("x"), data["pos"], data["batch"])
76
+ ```
77
+
78
+ ## Feature extraction
79
+
80
+ ```python
81
+ with torch.no_grad():
82
+ embeddings = model.forward_features(data.get("x"), data["pos"], data["batch"])
83
+
84
+ model.reset_classifier(num_classes=0)
85
+ with torch.no_grad():
86
+ embeddings = model(data.get("x"), data["pos"], data["batch"]) # (B, 1024)
87
+ ```
88
+
89
+ ## Citation
90
+
91
+ ```bibtex
92
+ @inproceedings{qi2017pointnet2,
93
+ title = {PointNet++: Deep Hierarchical Feature Learning on Point Sets in a Metric Space},
94
+ author = {Charles R. Qi and Li Yi and Hao Su and Leonidas J. Guibas},
95
+ booktitle = {NeurIPS},
96
+ year = {2017}
97
+ }
98
+ ```
99
+
100
+ ```bibtex
101
+ @inproceedings{uy2019scanobjectnn,
102
+ title = {Revisiting Point Cloud Classification: A New Benchmark Dataset and Classification Model on Real-World Data},
103
+ author = {Mikaela Angelina Uy and Quang-Hieu Pham and Binh-Son Hua and Duc Thanh Nguyen and Sai-Kit Yeung},
104
+ booktitle = {ICCV},
105
+ year = {2019}
106
+ }
107
+ ```
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b948e054b05f61b83812aa8ad8dd357a90d3049a25b205452b73bf805054ae2e
3
+ size 5912924