arthurdjn commited on
Commit
5a039a7
·
verified ·
1 Parent(s): 0d5ce8c

Upload pointnet2.s3dis-area5.openpoints

Browse files
Files changed (2) hide show
  1. README.md +108 -0
  2. model.safetensors +3 -0
README.md ADDED
@@ -0,0 +1,108 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: mit
3
+ library_name: torch-pointcloud
4
+ tags:
5
+ - point-cloud
6
+ - 3d
7
+ - pytorch
8
+ - torch-pointcloud
9
+ - pointnet2
10
+ - segmentation
11
+ datasets:
12
+ - s3dis
13
+ model-index:
14
+ - name: pointnet2.s3dis-area5.openpoints
15
+ results:
16
+ - task:
17
+ type: point-cloud-segmentation
18
+ dataset:
19
+ name: S3DIS (Area 5)
20
+ type: s3dis
21
+ metrics:
22
+ - name: mIoU
23
+ type: mean_iou
24
+ value: 63.66
25
+ ---
26
+
27
+ # Model card for pointnet2.s3dis-area5.openpoints
28
+
29
+ A PointNet++ point cloud segmentation model (hierarchical set abstraction). Trained on S3DIS (Area 5).
30
+
31
+ ## Model Details
32
+
33
+ - **Model Type:** Point cloud semantic segmentation
34
+ - **Model Stats:**
35
+ - Params (M): 1.0
36
+ - Input channels: 4
37
+ - Classes: 13
38
+ - Features: 128
39
+ - **Dataset:** S3DIS (Area 5)
40
+ - **Metrics:** mIoU 63.66 (reference 63.6)
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.s3dis-area5.openpoints",
60
+ task="segmentation",
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
+ "color": torch.rand(num_points, 3) * 255,
71
+ }
72
+ data = info["transform"](sample)
73
+ data = collate([data])
74
+
75
+ with torch.no_grad():
76
+ logits = model(data.get("x"), data["pos"], data["batch"])
77
+ ```
78
+
79
+ ## Feature extraction
80
+
81
+ ```python
82
+ with torch.no_grad():
83
+ features = model.forward_features(data.get("x"), data["pos"], data["batch"])
84
+
85
+ model.reset_classifier(num_classes=0)
86
+ with torch.no_grad():
87
+ features = model(data.get("x"), data["pos"], data["batch"]) # (N, 128)
88
+ ```
89
+
90
+ ## Citation
91
+
92
+ ```bibtex
93
+ @inproceedings{qi2017pointnet2,
94
+ title = {PointNet++: Deep Hierarchical Feature Learning on Point Sets in a Metric Space},
95
+ author = {Charles R. Qi and Li Yi and Hao Su and Leonidas J. Guibas},
96
+ booktitle = {NeurIPS},
97
+ year = {2017}
98
+ }
99
+ ```
100
+
101
+ ```bibtex
102
+ @inproceedings{armeni2016s3dis,
103
+ title = {{3D} Semantic Parsing of Large-Scale Indoor Spaces},
104
+ author = {Armeni, Iro and Sener, Ozan and Zamir, Amir R. and Jiang, Helen and Brilakis, Ioannis and Fischer, Martin and Savarese, Silvio},
105
+ booktitle = {CVPR},
106
+ year = {2016}
107
+ }
108
+ ```
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:defb384ee61e1d733ebb9620a42da6ec882afc8cd1112952e759fa0d83be0195
3
+ size 3922660