arthurdjn commited on
Commit
68dbcdb
·
verified ·
1 Parent(s): b7e78e3

Upload sonata-lp.scannet20.fair

Browse files
Files changed (2) hide show
  1. README.md +115 -0
  2. model.safetensors +3 -0
README.md ADDED
@@ -0,0 +1,115 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: cc-by-nc-4.0
3
+ library_name: torch-pointcloud
4
+ tags:
5
+ - point-cloud
6
+ - 3d
7
+ - pytorch
8
+ - torch-pointcloud
9
+ - sonata
10
+ - segmentation
11
+ datasets:
12
+ - scannet
13
+ base_model: torch-pointcloud/sonata-base.pretrain.fair
14
+ model-index:
15
+ - name: sonata-lp.scannet20.fair
16
+ results:
17
+ - task:
18
+ type: point-cloud-segmentation
19
+ dataset:
20
+ name: ScanNet (20 classes)
21
+ type: scannet
22
+ metrics:
23
+ - name: mIoU
24
+ type: mean_iou
25
+ value: 72.6
26
+ ---
27
+
28
+ # Model card for sonata-lp.scannet20.fair
29
+
30
+ A Sonata point cloud segmentation model (self-distilled point representation encoder). Trained on ScanNet (20 classes).
31
+
32
+ > **Non-commercial.** These weights are released by [facebookresearch/sonata](https://github.com/facebookresearch/sonata) under CC BY-NC 4.0 and may be used for research and evaluation only.
33
+
34
+ ## Model Details
35
+
36
+ - **Model Type:** Point cloud semantic segmentation
37
+ - **Model Stats:**
38
+ - Params (M): 108.5
39
+ - Input channels: 9
40
+ - Classes: 20
41
+ - Features: 1232
42
+ - **Dataset:** ScanNet (20 classes)
43
+ - **Metrics:** mIoU 72.6 (reference 72.5)
44
+ - **Paper:** [Sonata: Self-Supervised Learning of Reliable Point Representations](https://arxiv.org/abs/2503.16429)
45
+ - **Converted from:** [facebookresearch/sonata](https://github.com/facebookresearch/sonata) (CC-BY-NC-4.0)
46
+ - **Library:** [torch-pointcloud](https://github.com/arthurdjn/pytorch-pointcloud)
47
+
48
+ ## Install
49
+
50
+ ```bash
51
+ pip install torch-pointcloud
52
+ ```
53
+
54
+ ## Usage
55
+
56
+ ```python
57
+ import torch
58
+ import torch_pointcloud as tp
59
+ from torch_pointcloud.utils.data import collate
60
+
61
+ model, info = tp.create_model(
62
+ "sonata-lp.scannet20.fair",
63
+ task="segmentation",
64
+ pretrained=True,
65
+ return_info=True,
66
+ )
67
+ model = model.cuda().eval() # GPU-only kernels
68
+
69
+ # synthetic sample with the keys a dataset provides
70
+ num_points = 8192
71
+ sample = {
72
+ "pos": torch.randn(num_points, 3),
73
+ "color": torch.rand(num_points, 3) * 255,
74
+ "normal": torch.randn(num_points, 3),
75
+ "segment": torch.zeros(num_points, dtype=torch.long),
76
+ "instance": torch.zeros(num_points, dtype=torch.long),
77
+ }
78
+ data = info["transform"](sample)
79
+ data = collate([data])
80
+ data = {key: value.cuda() for key, value in data.items()}
81
+
82
+ with torch.no_grad():
83
+ logits = model(data.get("x"), data["pos_grid"], data["batch"])
84
+ ```
85
+
86
+ ## Feature extraction
87
+
88
+ ```python
89
+ with torch.no_grad():
90
+ features = model.forward_features(data.get("x"), data["pos_grid"], data["batch"])
91
+
92
+ model.reset_classifier(num_classes=0)
93
+ with torch.no_grad():
94
+ features = model(data.get("x"), data["pos_grid"], data["batch"]) # (N, 1232)
95
+ ```
96
+
97
+ ## Citation
98
+
99
+ ```bibtex
100
+ @inproceedings{wu2025sonata,
101
+ title = {Sonata: Self-Supervised Learning of Reliable Point Representations},
102
+ author = {Xiaoyang Wu and Daniel DeTone and Duncan Frost and Tianwei Shen and Chris Xie and Nan Yang and Jakob Engel and Richard Newcombe and Hengshuang Zhao and Julian Straub},
103
+ booktitle = {CVPR},
104
+ year = {2025}
105
+ }
106
+ ```
107
+
108
+ ```bibtex
109
+ @inproceedings{dai2017scannet,
110
+ title = {ScanNet: Richly-annotated 3D Reconstructions of Indoor Scenes},
111
+ author = {Angela Dai and Angel X. Chang and Manolis Savva and Maciej Halber and Thomas Funkhouser and Matthias Nießner},
112
+ booktitle = {CVPR},
113
+ year = {2017}
114
+ }
115
+ ```
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7b284c23f2258381d2f54d751cdc59e2f6ee675ccb9dd79ad1ae3df6f1d3ea87
3
+ size 433993176