Update model cards, manifests and configs
Browse filesFiles changed (12)
- .gitattributes+1-34
- LICENSEAdded+21
- README.mdAdded+111
- fkaconv-parislille3d/README.mdAdded+170
- fkaconv-parislille3d/config.ymlAdded+69
- fkaconv-parislille3d/model.onnx.meta.jsonAdded+306
- fkaconv-semantic3d/README.mdAdded+170
- fkaconv-semantic3d/config.ymlAdded+70
- fkaconv-semantic3d/model.onnx.meta.jsonAdded+304
- sphereformer-parislille3d/README.mdAdded+195
- sphereformer-parislille3d/config.ymlAdded+89
- sphereformer-parislille3d/model.onnx.meta.jsonAdded+773
1234567891011121314151171819202122232425262728293031323334352*.7z filter=lfs diff=lfs merge=lfs -text*.arrow filter=lfs diff=lfs merge=lfs -text*.bin filter=lfs diff=lfs merge=lfs -text*.bz2 filter=lfs diff=lfs merge=lfs -text*.ckpt filter=lfs diff=lfs merge=lfs -text*.ftz filter=lfs diff=lfs merge=lfs -text*.gz filter=lfs diff=lfs merge=lfs -text*.h5 filter=lfs diff=lfs merge=lfs -text*.joblib filter=lfs diff=lfs merge=lfs -text*.lfs.* filter=lfs diff=lfs merge=lfs -text*.mlmodel filter=lfs diff=lfs merge=lfs -text*.model filter=lfs diff=lfs merge=lfs -text*.msgpack filter=lfs diff=lfs merge=lfs -text*.npy filter=lfs diff=lfs merge=lfs -text*.npz filter=lfs diff=lfs merge=lfs -text*.onnx filter=lfs diff=lfs merge=lfs -text*.ot filter=lfs diff=lfs merge=lfs -text*.parquet filter=lfs diff=lfs merge=lfs -text*.pb filter=lfs diff=lfs merge=lfs -text*.pickle filter=lfs diff=lfs merge=lfs -text*.pkl filter=lfs diff=lfs merge=lfs -text*.pt filter=lfs diff=lfs merge=lfs -text*.pth filter=lfs diff=lfs merge=lfs -text*.rar filter=lfs diff=lfs merge=lfs -text*.safetensors filter=lfs diff=lfs merge=lfs -textsaved_model/**/* filter=lfs diff=lfs merge=lfs -text*.tar.* filter=lfs diff=lfs merge=lfs -text*.tar filter=lfs diff=lfs merge=lfs -text*.tflite filter=lfs diff=lfs merge=lfs -text*.tgz filter=lfs diff=lfs merge=lfs -text*.wasm filter=lfs diff=lfs merge=lfs -text*.xz filter=lfs diff=lfs merge=lfs -text*.zip filter=lfs diff=lfs merge=lfs -text*.zst filter=lfs diff=lfs merge=lfs -text*tfevents* filter=lfs diff=lfs merge=lfs -text*.bin filter=lfs diff=lfs merge=lfs -text123456789101112131415161718192021MIT License
Copyright (c) 2026 Daniel Roncelli
Permission is hereby granted, free of charge, to any person obtaining a copyof this software and associated documentation files (the "Software"), to dealin the Software without restriction, including without limitation the rightsto use, copy, modify, merge, publish, distribute, sublicense, and/or sellcopies of the Software, and to permit persons to whom the Software isfurnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in allcopies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS ORIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THEAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHERLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THESOFTWARE.123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111---language:- enlicense: mittags:- onnx- point-cloud- semantic-segmentation- lidar- fkaconv- sphereformer- 3d---
# ONNX Semantic Segmentation Models for LiDAR Point Clouds
A collection of **ONNX** semantic-segmentation models for point clouds,exported from the [Open3D-ML](https://github.com/isl-org/Open3D-ML) trainingpipeline. All models are ready for inference with ONNX Runtime (CPU / CUDA /DirectML) using the preprocessing described in each model's`model.onnx.meta.json`.
## Status
These are **experimental** research models. They are not optimized to the fullest(no exhaustive hyperparameter tuning, limited training budget, possible classimbalance) and are provided as-is. Validate them on your own data.
## CloudCompare qSemSeg
All three packages (`model.onnx` + `model.onnx.meta.json`) can be loadeddirectly by the CloudCompare **qSemSeg** plugin: point the plugin's model pathat `model.onnx`; the sidecar manifest is read automatically and provides patchsize, voxel size, feature mode, adapter settings and labels.
## Included models
| Folder | Architecture | Dataset | Classes | Points/patch | Voxel size ||---|---|---|---|---|---|| [`fkaconv-parislille3d/`](fkaconv-parislille3d/) | FKAConv | Paris-Lille-3D | 9 | 25,536 | 0.08 || [`fkaconv-semantic3d/`](fkaconv-semantic3d/) | FKAConv | Semantic3D | 8 | 25,536 | 0.08 || [`sphereformer-parislille3d/`](sphereformer-parislille3d/) | SphereFormer | Paris-Lille-3D | 9 | 65,536 | 0.05 |
Each subfolder contains:- `model.onnx` — exported ONNX graph- `model.onnx.meta.json` — full tensor / preprocessing / adapter specification- `README.md` — model-specific card (labels, inputs/outputs, preprocessing, usage)- `config.yml` — training configuration- `LICENSE` — MIT
## Reported performance (single test split, not a formal benchmark)
| Model | Overall acc. | mIoU (non-ignored) ||---|---|---|| FKAConv – Paris-Lille-3D | – | ≈ 0.647 || FKAConv – Semantic3D | ≈ 0.775 | ≈ 0.461 || SphereFormer – Paris-Lille-3D | – | ≈ 0.782 |
Per-class IoU breakdowns are in each model's `README.md`.
## Quick start
```pythonimport onnxruntime as ort
sess = ort.InferenceSession( "fkaconv-parislille3d/model.onnx", providers=["CUDAExecutionProvider", "CPUExecutionProvider"],)
# `inputs` must be built according to model.onnx.meta.jsonlogits = sess.run(["logits"], inputs)[0]pred = logits.argmax(axis=-1)```
Preprocessing (voxelisation, sliding window, hierarchy / neighbour-tableconstruction) is **not** part of any graph and must be replicated. See eachmodel's `model.onnx.meta.json` for reference.
## Runtime notes
- **FKAConv** models use a dynamic batch axis and dynamic point count.- **SphereFormer** uses a fixed 65,536-point patch and many precomputed structural tensors. On the export machine the CUDA execution provider was ~70× slower than CPU for this graph and produced NaN/Inf; DirectML / CPU are recommended. Benchmark on your target hardware.- All models ignore class 0 (unclassified) during training and evaluation.
## Labels
### FKAConv / SphereFormer – Paris-Lille-3D (9 classes)
`ground`, `building`, `pole-road_sign-traffic_light`, `bollard-small_pole`,`trash_can`, `barrier`, `pedestrian`, `car`, `natural-vegetation`(label values 1–9; 0 = unclassified/ignored).
### FKAConv – Semantic3D (8 classes)
`man-made terrain`, `natural terrain`, `high vegetation`, `low vegetation`,`buildings`, `hard scape`, `scanning artefacts`, `cars`(label values 1–8; 0 = unclassified/ignored).
## Citation
If you use these models, please cite the FKAConv / SphereFormer work and therespective datasets (Paris-Lille-3D, Semantic3D). See the Open3D-ML repositoryfor the full training setup, configs and evaluation code.
## License
MIT (see `LICENSE`).123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170---language:- enlicense: mittags:- onnx- point-cloud- semantic-segmentation- lidar- fkaconv- 3d- paris-lille-3ddatasets:- Paris-Lille-3D---
# FKAConv – Paris-Lille-3D (ONNX)
ONNX export of a **FKAConv** semantic-segmentation model trained on the[Paris-Lille-3D](https://npm3d.fr/paris-lille-3d) dataset.
This repository contains the exported ONNX graph (`model.onnx`) together withits metadata (`model.onnx.meta.json`) describing the exact input/output tensors,preprocessing, hierarchy construction and label mapping required to reproduceinference. The model is intended to be consumed by the C++/Python inferencepipeline in [Open3D-ML](https://github.com/isl-org/Open3D-ML).
## Model details
| Field | Value ||---|---|| Architecture | FKAConv (multi-scale, FPS + KNN hierarchy) || Dataset | Paris-Lille-3D || Number of classes | 9 (+ ignored label 0 = unclassified) || Input channels | 3 (xyz geometry features) || Feature mode | `xyz` || Points per patch (`num_points`) | 25,536 || Voxel grid size | 0.08 || Support points per stage | `[256, 64, 16, 4]` || Neighbours (K) | 16 || ONNX opset | 17 || Dynamic axes | `batch`, `num_points` |
### Labels
| Index | Value | Name ||---|---|---|| 0 | – | unclassified (ignored) || 1 | 1 | ground || 2 | 2 | building || 3 | 3 | pole-road_sign-traffic_light || 4 | 4 | bollard-small_pole || 5 | 5 | trash_can || 6 | 6 | barrier || 7 | 7 | pedestrian || 8 | 8 | car || 9 | 9 | natural-vegetation |
(Model class index `i` corresponds to label value `i`; class 0 is ignored.)
## Status
These are **experimental** research models. They are not optimized to the fullest(no exhaustive hyperparameter tuning, limited training budget, possible classimbalance) and are provided as-is. Validate them on your own data before usingthem in production.
## Performance (test run on `Lille2.ply`, ~21.4M points)
Per-class IoU:
| Class | Name | IoU ||---|---|---|| 0 | unclassified (ignored) | 0.985 || 1 | ground | 0.982 || 2 | building | 0.565 || 3 | pole-road_sign-traffic_light | 0.675 || 4 | bollard-small_pole | 0.485 || 5 | trash_can | 0.306 || 6 | barrier | 0.471 || 7 | pedestrian | 0.918 || 8 | car | 0.738 || 9 | natural-vegetation | 0.681 |
Mean IoU over the 9 non-ignored classes ≈ **0.647**. Per-class accuracy isavailable in the training/test logs. Results are from a single split and arenot a formal benchmark.
## Using with CloudCompare qSemSeg
This package (`model.onnx` + `model.onnx.meta.json`) can be loaded directly bythe CloudCompare **qSemSeg** plugin: point the plugin's model path at`model.onnx`; the sidecar manifest is read automatically and provides patchsize, voxel size, feature mode, adapter settings and labels.
## Files
- `model.onnx` – exported model (ONNX, opset 17)- `model.onnx.meta.json` – full tensor / preprocessing / adapter specification- `config.yml` – training configuration used to build the model- `LICENSE` – MIT
## Inputs / outputs
The model consumes a **patch** of `num_points` points plus a precomputedmulti-scale hierarchy:
| Input | Dtype | Shape | Description ||---|---|---|---|| `points` | float32 | `[B, 3, N]` | point coordinates || `features` | float32 | `[B, 3, N]` | input features (`feature_mode=xyz`) || `sp0..sp3` | float32 | `[B, 3, S_i]` | FPS support points per stage || `idx0..idx13` | int64 | see meta.json | KNN / upsampling neighbour indices |
Output:
| Output | Dtype | Shape | Description ||---|---|---|---|| `logits` | float32 | `[B, N, 9]` | per-point logits; `argmax` over the last axis = class index |
Batch (`B`) is dynamic. The full input-tensor list and shapes are in`model.onnx.meta.json`.
## Preprocessing
The metadata file contains a complete, ordered preprocessing recipe. Summary:
1. Voxel-grid subsample the raw cloud at `voxel_size = 0.08` (barycenter per voxel), keeping a nearest-neighbour map `proj_inds` back to the original cloud.2. Sliding window (regular sampler): repeat until `min(possibilities) > 0.5`. Each patch is centred at `argmin(possibilities)` (least-covered point), samples `k = num_points` nearest neighbours via KDTree, updates `possibilities[idxs] += (1 - dist/max_dist)^2`, runs the model, and accumulates `test_probs[idxs] = 0.95 * test_probs[idxs] + 0.05 * softmax(logits)`.3. Inside each patch: apply the eval augmentation (recenter to patch mean of xyz), then build input features per `feature_mode = xyz` with `in_channels = 3`.4. Compute the hierarchy (`FKAConv._compute_hierarchy`): FPS support points at `stage_npoints = [256, 64, 16, 4]`, KNN indices with `K = 16`.5. Feed `points [1, 3, k]`, `features [1, C, k]`, `sp_i [1, 3, S_i]`, `idx_i [1, S, K]` (int64).6. Final labels = `argmax(test_probs)[proj_inds]`.
## Usage (Python, ONNX Runtime)
```pythonimport onnxruntime as ortimport numpy as np
sess = ort.InferenceSession( "model.onnx", providers=["CUDAExecutionProvider", "CPUExecutionProvider"],)
# Build `inputs` dict with the tensors described above, then:logits = sess.run(["logits"], inputs)[0] # shape: [B, N, 9]pred = logits.argmax(axis=-1) # shape: [B, N]```
Preprocessing (voxelisation, sliding window, hierarchy construction) is **not**part of the graph and must be replicated. See `model.onnx.meta.json` for reference.
## Limitations
- The graph expects precomputed neighbour/hierarchy tensors; it is not a drop-in model for raw point clouds.- Trained on Paris-Lille-3D; performance on other LiDAR datasets or sensor configurations is not guaranteed.- Class 0 (unclassified) is ignored during training and evaluation.
## Citation
If you use this model, please cite the FKAConv work and the Paris-Lille-3Ddataset. See the Open3D-ML repository for the full training setup and configs.
## License
MIT (see `LICENSE`).123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869dataset:
name: ParisLille3D
dataset_path: path/to/ParisLille3D
cache_dir: ./logs/cache
class_weights: [65075320, 33014819, 656096, 61715, 296523, 4052947, 172132, 4212295, 10599237]
ignored_label_inds:
- 0
test_result_folder: ./logs/test
val_files:
- Lille2.ply
use_cache: True
features: []
steps_per_epoch_train: 200
steps_per_epoch_valid: 20
sampler:
name:
train: SemSegRandomSampler
validation: SemSegSpatiallyRegularSampler
model:
name: FKAConv
batcher: DefaultBatcher
ckpt_path:
is_resume: false
num_points: 25536
num_classes: 9
ignored_label_inds: [0]
in_channels: 3
feature_mode: xyz
grid_size: 0.08
base_width: 64
kernel_size: 16
num_neighbors: 16
kernel_separation: false
support_sampling: fps
stage_npoints: [256, 64, 16, 4]
augment:
recenter:
dim: [0, 1, 2]
rotate:
method: vertical
scale:
min_s: 0.9
max_s: 1.1
noise:
noise_std: 0.005
RandomHorizontalFlip:
axes: [0, 1]
RandomDropout:
dropout_ratio: 0.1
workflow:
name: SemanticSegmentation
optimizer:
lr: 0.001
weight_decay: 0.0001
batch_size: 4
main_log_dir: ./logs
max_epoch: 1600
save_ckpt_freq: 5
scheduler_gamma: 0.9886
test_batch_size: 1
train_sum_dir: ./logs/train_log
val_batch_size: 4
summary:
record_for: []
max_pts:
use_reference: false
max_outputs: 1123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306{
"created": "2026-11-21T23:39:22",
"model_name": "FKAConv",
"checkpoint": "best_ckpt_epoch.pth",
"config": "fkaconv_parislille3d.yml",
"onnx_file": "fkaconv_parislille3d.onnx",
"inputs": [
{
"name": "points",
"dtype": "float32",
"shape": [
"batch",
3,
"num_points"
],
"layout": "[B, 3, N] input point coordinates"
},
{
"name": "features",
"dtype": "float32",
"shape": [
"batch",
3,
"num_points"
],
"layout": "[B, 3, N] input features (feature_mode=xyz)"
},
{
"name": "sp0",
"dtype": "float32",
"shape": [
"batch",
3,
256
],
"layout": "[B, 3, 256] support points of stage 0 (FPS, stage_npoints[0]=256)"
},
{
"name": "sp1",
"dtype": "float32",
"shape": [
"batch",
3,
64
],
"layout": "[B, 3, 64] support points of stage 1 (FPS, stage_npoints[1]=64)"
},
{
"name": "sp2",
"dtype": "float32",
"shape": [
"batch",
3,
16
],
"layout": "[B, 3, 16] support points of stage 2 (FPS, stage_npoints[2]=16)"
},
{
"name": "sp3",
"dtype": "float32",
"shape": [
"batch",
3,
4
],
"layout": "[B, 3, 4] support points of stage 3 (FPS, stage_npoints[3]=4)"
},
{
"name": "idx0",
"dtype": "int64",
"shape": [
"batch",
"num_points",
16
],
"layout": "[B, num_points, 16] neighbor indices into the source point set"
},
{
"name": "idx1",
"dtype": "int64",
"shape": [
"batch",
"num_points",
16
],
"layout": "[B, num_points, 16] neighbor indices into the source point set"
},
{
"name": "idx2",
"dtype": "int64",
"shape": [
"batch",
256,
16
],
"layout": "[B, 256, 16] neighbor indices into the source point set"
},
{
"name": "idx3",
"dtype": "int64",
"shape": [
"batch",
256,
16
],
"layout": "[B, 256, 16] neighbor indices into the source point set"
},
{
"name": "idx4",
"dtype": "int64",
"shape": [
"batch",
64,
16
],
"layout": "[B, 64, 16] neighbor indices into the source point set"
},
{
"name": "idx5",
"dtype": "int64",
"shape": [
"batch",
64,
16
],
"layout": "[B, 64, 16] neighbor indices into the source point set"
},
{
"name": "idx6",
"dtype": "int64",
"shape": [
"batch",
16,
16
],
"layout": "[B, 16, 16] neighbor indices into the source point set"
},
{
"name": "idx7",
"dtype": "int64",
"shape": [
"batch",
16,
16
],
"layout": "[B, 16, 16] neighbor indices into the source point set"
},
{
"name": "idx8",
"dtype": "int64",
"shape": [
"batch",
4,
16
],
"layout": "[B, 4, 16] neighbor indices into the source point set"
},
{
"name": "idx9",
"dtype": "int64",
"shape": [
"batch",
4,
16
],
"layout": "[B, 4, 16] neighbor indices into the source point set"
},
{
"name": "idx10",
"dtype": "int64",
"shape": [
"batch",
16,
1
],
"layout": "[B, 16, 1] neighbor indices into the source point set"
},
{
"name": "idx11",
"dtype": "int64",
"shape": [
"batch",
64,
1
],
"layout": "[B, 64, 1] neighbor indices into the source point set"
},
{
"name": "idx12",
"dtype": "int64",
"shape": [
"batch",
256,
1
],
"layout": "[B, 256, 1] neighbor indices into the source point set"
},
{
"name": "idx13",
"dtype": "int64",
"shape": [
"batch",
"num_points",
1
],
"layout": "[B, num_points, 1] neighbor indices into the source point set"
}
],
"output": {
"name": "logits",
"dtype": "float32",
"shape": [
"batch",
"num_points",
"num_classes"
],
"layout": "[B, N, num_classes] per-point logits; argmax over last axis = label"
},
"in_channels": 3,
"num_classes": 9,
"ignored_label_inds": [
0
],
"num_points": 25536,
"dynamic_axes": {
"batch": true,
"num_points": true
},
"opset": 17,
"versions": {
"torch": "2.6.0+cu126",
"onnx": "1.23.2",
"onnxruntime": "1.23.2",
"onnxruntime_available_providers": [
"TensorrtExecutionProvider",
"CUDAExecutionProvider",
"CPUExecutionProvider"
]
},
"providers": [
"CUDAExecutionProvider",
"CPUExecutionProvider"
],
"adapter": {
"stage_npoints": [
256,
64,
16,
4
],
"num_neighbors": 16,
"feature_mode": "xyz",
"hierarchy": {
"description": "FKAConv multi-scale hierarchy computed in preprocessing (FKAConv._compute_hierarchy): support points per stage via FPS (stage_npoints), KNN indices (num_neighbors) between consecutive levels plus self-KNN, and nearest-neighbor (K=1) indices for upsampling. idx order: [self(N,K), self(N,K), down/up pairs..., upsample (S2,1),(S1,1),(S0,1),(N,1)]."
}
},
"preprocessing": {
"description": "FKAConv preprocessing; replicate in C++ (hierarchy = FPS + KNN, see meta.json).",
"voxel_size": 0.08,
"num_points": 25536,
"channels": 3,
"shift_min": false,
"augment": {
"recenter": {
"dim": [
0,
1,
2
]
}
},
"feature_columns": [],
"steps": [
"1. voxel-grid subsample the raw cloud at `voxel_size` (barycenter per voxel), keeping a nearest-neighbor map proj_inds back to the original cloud",
"2. sliding window (regular sampler, as in the original inference): repeat until min(possibilities) > 0.5 \u2014 center each patch at argmin(possibilities) (the least-covered point), sample k=num_points nearest neighbors via KDTree, update possibilities[idxs] += (1 - dist/max_dist)^2, run the model, accumulate test_probs[idxs] = 0.95*test_probs[idxs] + 0.05*softmax(logits)",
"3. inside each patch: apply the eval augmentation (recenter) from the training config, then build input features per feature_mode='xyz' with in_channels=3 (FKAConv._build_features)",
"4. compute the hierarchy (FKAConv._compute_hierarchy): FPS support points at stage_npoints=[256, 64, 16, 4], KNN indices with K=16",
"5. feed points [1,3,k], features [1,C,k], sp_i [1,3,S_i], idx_i [1,S,K] (int64)",
"6. final labels = argmax(test_probs)[proj_inds]"
]
},
"labels": {
"values": [
1,
2,
3,
4,
5,
6,
7,
8,
9
],
"names": [
"ground",
"building",
"pole-road_sign-traffic_light",
"bollard-small_pole",
"trash_can",
"barrier",
"pedestrian",
"car",
"natural-vegetation"
]
}
}123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170---language:- enlicense: mittags:- onnx- point-cloud- semantic-segmentation- lidar- fkaconv- 3d- semantic3ddatasets:- Semantic3D---
# FKAConv – Semantic3D (ONNX)
ONNX export of a **FKAConv** semantic-segmentation model trained on the[Semantic3D](http://www.semantic3d.net/) dataset.
This repository contains the exported ONNX graph (`model.onnx`) together withits metadata (`model.onnx.meta.json`) describing the exact input/output tensors,preprocessing, hierarchy construction and label mapping required to reproduceinference. The model is intended to be consumed by the C++/Python inferencepipeline in [Open3D-ML](https://github.com/isl-org/Open3D-ML).
## Model details
| Field | Value ||---|---|| Architecture | FKAConv (multi-scale, FPS + KNN hierarchy) || Dataset | Semantic3D || Number of classes | 8 (+ ignored label 0) || Input channels | 3 (xyz geometry features) || Feature mode | `xyz` || Points per patch (`num_points`) | 25,536 || Voxel grid size | 0.08 || Support points per stage | `[256, 64, 16, 4]` || Neighbours (K) | 16 || ONNX opset | 17 || Dynamic axes | `batch`, `num_points` |
### Labels
| Index | Value | Name ||---|---|---|| 0 | – | unclassified (ignored) || 1 | 1 | man-made terrain || 2 | 2 | natural terrain || 3 | 3 | high vegetation || 4 | 4 | low vegetation || 5 | 5 | buildings || 6 | 6 | hard scape || 7 | 7 | scanning artefacts || 8 | 8 | cars |
(Model class index `i` corresponds to label value `i`; class 0 is ignored.)
## Status
These are **experimental** research models. They are not optimized to the fullest(no exhaustive hyperparameter tuning, limited training budget, possible classimbalance) and are provided as-is. Validate them on your own data before usingthem in production.
## Performance (test run, Semantic3D)
Reported on a held-out test run:- Overall accuracy ≈ **0.775**- mIoU ≈ **0.461**
Per-class IoU:
| Class | Name | IoU ||---|---|---|| 0 | unclassified (ignored) | 0.960 || 1 | man-made terrain | 0.000 || 2 | natural terrain | 0.628 || 3 | high vegetation | 0.098 || 4 | low vegetation | 0.935 || 5 | buildings | 0.178 || 6 | hard scape | 0.266 || 7 | scanning artefacts | 0.625 || 8 | cars | 0.461 |
Results are from a single split and are not a formal benchmark.
## Using with CloudCompare qSemSeg
This package (`model.onnx` + `model.onnx.meta.json`) can be loaded directly bythe CloudCompare **qSemSeg** plugin: point the plugin's model path at`model.onnx`; the sidecar manifest is read automatically and provides patchsize, voxel size, feature mode, adapter settings and labels.
## Files
- `model.onnx` – exported model (ONNX, opset 17)- `model.onnx.meta.json` – full tensor / preprocessing / adapter specification- `config.yml` – training configuration used to build the model- `LICENSE` – MIT
## Inputs / outputs
The model consumes a **patch** of `num_points` points plus a precomputedmulti-scale hierarchy:
| Input | Dtype | Shape | Description ||---|---|---|---|| `points` | float32 | `[B, 3, N]` | point coordinates || `features` | float32 | `[B, 3, N]` | input features (`feature_mode=xyz`) || `sp0..sp3` | float32 | `[B, 3, S_i]` | FPS support points per stage || `idx0..idx13` | int64 | see meta.json | KNN / upsampling neighbour indices |
Output:
| Output | Dtype | Shape | Description ||---|---|---|---|| `logits` | float32 | `[B, N, 8]` | per-point logits; `argmax` over the last axis = class index |
Batch (`B`) is dynamic. The full input-tensor list and shapes are in`model.onnx.meta.json`.
## Preprocessing
The metadata file contains a complete, ordered preprocessing recipe. Summary:
1. Voxel-grid subsample the raw cloud at `voxel_size = 0.08` (barycenter per voxel), keeping a nearest-neighbour map `proj_inds` back to the original cloud.2. Sliding window (regular sampler): repeat until `min(possibilities) > 0.5`. Each patch is centred at `argmin(possibilities)` (least-covered point), samples `k = num_points` nearest neighbours via KDTree, updates `possibilities[idxs] += (1 - dist/max_dist)^2`, runs the model, and accumulates `test_probs[idxs] = 0.95 * test_probs[idxs] + 0.05 * softmax(logits)`.3. Inside each patch: apply the eval augmentation (recenter to patch mean of xyz), then build input features per `feature_mode = xyz` with `in_channels = 3`.4. Compute the hierarchy (`FKAConv._compute_hierarchy`): FPS support points at `stage_npoints = [256, 64, 16, 4]`, KNN indices with `K = 16`.5. Feed `points [1, 3, k]`, `features [1, C, k]`, `sp_i [1, 3, S_i]`, `idx_i [1, S, K]` (int64).6. Final labels = `argmax(test_probs)[proj_inds]`.
## Usage (Python, ONNX Runtime)
```pythonimport onnxruntime as ortimport numpy as np
sess = ort.InferenceSession( "model.onnx", providers=["CUDAExecutionProvider", "CPUExecutionProvider"],)
# Build `inputs` dict with the tensors described above, then:logits = sess.run(["logits"], inputs)[0] # shape: [B, N, 8]pred = logits.argmax(axis=-1) # shape: [B, N]```
Preprocessing (voxelisation, sliding window, hierarchy construction) is **not**part of the graph and must be replicated. See `model.onnx.meta.json` for reference.
## Limitations
- The graph expects precomputed neighbour/hierarchy tensors; it is not a drop-in model for raw point clouds.- Trained on Semantic3D; performance on other LiDAR datasets or sensor configurations is not guaranteed.- Class 0 (unclassified) is ignored during training and evaluation.
## Citation
If you use this model, please cite the FKAConv work and the Semantic3Ddataset. See the Open3D-ML repository for the full training setup and configs.
## License
MIT (see `LICENSE`).12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970dataset:
name: Semantic3D
dataset_path: path/to/Semantic3D
cache_dir: ./logs/cache
class_weights: [785809340, 477803320, 134549680, 99252920, 269154340, 80276480, 51708360, 15369820]
ignored_label_inds:
- 0
test_result_folder: ./logs/test
val_files:
- bildstein_station3_xyz_intensity_rgb.txt
- domfountain_station3_xyz_intensity_rgb.txt
use_cache: True
features: []
num_points: 25536
steps_per_epoch_train: 200
steps_per_epoch_valid: 20
sampler:
name:
train: SemSegRandomSampler
validation: SemSegSpatiallyRegularSampler
model:
name: FKAConv
batcher: DefaultBatcher
ckpt_path:
is_resume: false
num_points: 25536
num_classes: 8
ignored_label_inds: [0]
in_channels: 3
feature_mode: xyz
grid_size: 0.08
base_width: 64
kernel_size: 16
num_neighbors: 16
kernel_separation: false
support_sampling: fps
stage_npoints: [256, 64, 16, 4]
augment:
recenter:
dim: [0, 1, 2]
rotate:
method: vertical
scale:
min_s: 0.9
max_s: 1.1
noise:
noise_std: 0.005
RandomHorizontalFlip:
axes: [0, 1]
workflow:
name: SemanticSegmentation
optimizer:
lr: 0.001
weight_decay: 0.0001
batch_size: 4
main_log_dir: ./logs
max_epoch: 120
save_ckpt_freq: 5
scheduler_gamma: 0.965
test_batch_size: 1
train_sum_dir: ./logs/train_log
val_batch_size: 4
num_workers: 2
summary:
record_for: []
max_pts:
use_reference: false
max_outputs: 1123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304{
"created": "2026-11-21T13:08:44",
"model_name": "FKAConv",
"checkpoint": "best_ckpt_epoch.pth",
"config": "fkaconv_semantic3d.yml",
"onnx_file": "fkaconv_semantic3d.onnx",
"inputs": [
{
"name": "points",
"dtype": "float32",
"shape": [
"batch",
3,
"num_points"
],
"layout": "[B, 3, N] input point coordinates"
},
{
"name": "features",
"dtype": "float32",
"shape": [
"batch",
3,
"num_points"
],
"layout": "[B, 3, N] input features (feature_mode=xyz)"
},
{
"name": "sp0",
"dtype": "float32",
"shape": [
"batch",
3,
256
],
"layout": "[B, 3, 256] support points of stage 0 (FPS, stage_npoints[0]=256)"
},
{
"name": "sp1",
"dtype": "float32",
"shape": [
"batch",
3,
64
],
"layout": "[B, 3, 64] support points of stage 1 (FPS, stage_npoints[1]=64)"
},
{
"name": "sp2",
"dtype": "float32",
"shape": [
"batch",
3,
16
],
"layout": "[B, 3, 16] support points of stage 2 (FPS, stage_npoints[2]=16)"
},
{
"name": "sp3",
"dtype": "float32",
"shape": [
"batch",
3,
4
],
"layout": "[B, 3, 4] support points of stage 3 (FPS, stage_npoints[3]=4)"
},
{
"name": "idx0",
"dtype": "int64",
"shape": [
"batch",
"num_points",
16
],
"layout": "[B, num_points, 16] neighbor indices into the source point set"
},
{
"name": "idx1",
"dtype": "int64",
"shape": [
"batch",
"num_points",
16
],
"layout": "[B, num_points, 16] neighbor indices into the source point set"
},
{
"name": "idx2",
"dtype": "int64",
"shape": [
"batch",
256,
16
],
"layout": "[B, 256, 16] neighbor indices into the source point set"
},
{
"name": "idx3",
"dtype": "int64",
"shape": [
"batch",
256,
16
],
"layout": "[B, 256, 16] neighbor indices into the source point set"
},
{
"name": "idx4",
"dtype": "int64",
"shape": [
"batch",
64,
16
],
"layout": "[B, 64, 16] neighbor indices into the source point set"
},
{
"name": "idx5",
"dtype": "int64",
"shape": [
"batch",
64,
16
],
"layout": "[B, 64, 16] neighbor indices into the source point set"
},
{
"name": "idx6",
"dtype": "int64",
"shape": [
"batch",
16,
16
],
"layout": "[B, 16, 16] neighbor indices into the source point set"
},
{
"name": "idx7",
"dtype": "int64",
"shape": [
"batch",
16,
16
],
"layout": "[B, 16, 16] neighbor indices into the source point set"
},
{
"name": "idx8",
"dtype": "int64",
"shape": [
"batch",
4,
16
],
"layout": "[B, 4, 16] neighbor indices into the source point set"
},
{
"name": "idx9",
"dtype": "int64",
"shape": [
"batch",
4,
16
],
"layout": "[B, 4, 16] neighbor indices into the source point set"
},
{
"name": "idx10",
"dtype": "int64",
"shape": [
"batch",
16,
1
],
"layout": "[B, 16, 1] neighbor indices into the source point set"
},
{
"name": "idx11",
"dtype": "int64",
"shape": [
"batch",
64,
1
],
"layout": "[B, 64, 1] neighbor indices into the source point set"
},
{
"name": "idx12",
"dtype": "int64",
"shape": [
"batch",
256,
1
],
"layout": "[B, 256, 1] neighbor indices into the source point set"
},
{
"name": "idx13",
"dtype": "int64",
"shape": [
"batch",
"num_points",
1
],
"layout": "[B, num_points, 1] neighbor indices into the source point set"
}
],
"output": {
"name": "logits",
"dtype": "float32",
"shape": [
"batch",
"num_points",
"num_classes"
],
"layout": "[B, N, num_classes] per-point logits; argmax over last axis = label"
},
"in_channels": 3,
"num_classes": 8,
"ignored_label_inds": [
0
],
"num_points": 25536,
"dynamic_axes": {
"batch": true,
"num_points": true
},
"opset": 17,
"versions": {
"torch": "2.6.0+cu126",
"onnx": "1.23.2",
"onnxruntime": "1.23.2",
"onnxruntime_available_providers": [
"TensorrtExecutionProvider",
"CUDAExecutionProvider",
"CPUExecutionProvider"
]
},
"providers": [
"CUDAExecutionProvider",
"CPUExecutionProvider"
],
"adapter": {
"stage_npoints": [
256,
64,
16,
4
],
"num_neighbors": 16,
"feature_mode": "xyz",
"hierarchy": {
"description": "FKAConv multi-scale hierarchy computed in preprocessing (FKAConv._compute_hierarchy): support points per stage via FPS (stage_npoints), KNN indices (num_neighbors) between consecutive levels plus self-KNN, and nearest-neighbor (K=1) indices for upsampling. idx order: [self(N,K), self(N,K), down/up pairs..., upsample (S2,1),(S1,1),(S0,1),(N,1)]."
}
},
"preprocessing": {
"description": "FKAConv preprocessing; replicate in C++ (hierarchy = FPS + KNN, see meta.json).",
"voxel_size": 0.08,
"num_points": 25536,
"channels": 3,
"shift_min": false,
"augment": {
"recenter": {
"dim": [
0,
1,
2
]
}
},
"feature_columns": [],
"steps": [
"1. voxel-grid subsample the raw cloud at `voxel_size` (barycenter per voxel), keeping a nearest-neighbor map proj_inds back to the original cloud",
"2. sliding window (regular sampler, as in the original inference): repeat until min(possibilities) > 0.5 \u2014 center each patch at argmin(possibilities) (the least-covered point), sample k=num_points nearest neighbors via KDTree, update possibilities[idxs] += (1 - dist/max_dist)^2, run the model, accumulate test_probs[idxs] = 0.95*test_probs[idxs] + 0.05*softmax(logits)",
"3. inside each patch: apply the eval augmentation (recenter) from the training config, then build input features per feature_mode='xyz' with in_channels=3 (FKAConv._build_features)",
"4. compute the hierarchy (FKAConv._compute_hierarchy): FPS support points at stage_npoints=[256, 64, 16, 4], KNN indices with K=16",
"5. feed points [1,3,k], features [1,C,k], sp_i [1,3,S_i], idx_i [1,S,K] (int64)",
"6. final labels = argmax(test_probs)[proj_inds]"
]
},
"labels": {
"values": [
1,
2,
3,
4,
5,
6,
7,
8
],
"names": [
"man-made terrain",
"natural terrain",
"high vegetation",
"low vegetation",
"buildings",
"hard scape",
"scanning artefacts",
"cars"
]
}
}123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195---language:- enlicense: mittags:- onnx- point-cloud- semantic-segmentation- lidar- sphereformer- 3d- paris-lille-3ddatasets:- Paris-Lille-3D---
# SphereFormer – Paris-Lille-3D (ONNX)
ONNX export of a **SphereFormer** semantic-segmentation model trained on the[Paris-Lille-3D](https://npm3d.fr/paris-lille-3d) dataset.
This repository contains the exported ONNX graph (`model.onnx`, ~874 MB) togetherwith its metadata (`model.onnx.meta.json`) describing the exact input/outputtensors, preprocessing, neighbour-table construction and label mapping requiredto reproduce inference. The model is intended to be consumed by the C++/Pythoninference pipeline in [Open3D-ML](https://github.com/isl-org/Open3D-ML).
## Model details
| Field | Value ||---|---|| Architecture | SphereFormer (cartesian + spherical window attention, 5 levels) || Dataset | Paris-Lille-3D || Number of classes | 9 (+ ignored label 0 = unclassified) || Input channels | 3 (xyz; intensity is folded into the feature path per the export) || Points per patch (`num_points`) | 65,536 || Voxel grid size | 0.05 || Fixed shape | yes (batch = 1, N = 65,536) || ONNX opset | 17 || Base channels | 32 → 64 → 128 → 256 → 256 |
### Labels
| Index | Value | Name ||---|---|---|| 0 | – | unclassified (ignored) || 1 | 1 | ground || 2 | 2 | building || 3 | 3 | pole-road_sign-traffic_light || 4 | 4 | bollard-small_pole || 5 | 5 | trash_can || 6 | 6 | barrier || 7 | 7 | pedestrian || 8 | 8 | car || 9 | 9 | natural-vegetation |
(Model class index `i` corresponds to label value `i`; class 0 is ignored.)
## Status
These are **experimental** research models. They are not optimized to the fullest(no exhaustive hyperparameter tuning, limited training budget, possible classimbalance) and are provided as-is. Validate them on your own data before usingthem in production.
## Performance (test run on `Lille2.ply`, ~21.4M points)
Per-class IoU:
| Class | Name | IoU ||---|---|---|| 0 | unclassified (ignored) | 0.984 || 1 | ground | 0.979 || 2 | building | 0.749 || 3 | pole-road_sign-traffic_light | 0.821 || 4 | bollard-small_pole | 0.750 || 5 | trash_can | 0.355 || 6 | barrier | 0.872 || 7 | pedestrian | 0.975 || 8 | car | 0.737 || 9 | natural-vegetation | 0.803 |
Mean IoU over the 9 non-ignored classes ≈ **0.782**. Per-class accuracy isavailable in the training/test logs. Results are from a single split and arenot a formal benchmark.
## Using with CloudCompare qSemSeg
This package (`model.onnx` + `model.onnx.meta.json`) can be loaded directly bythe CloudCompare **qSemSeg** plugin: point the plugin's model path at`model.onnx`; the sidecar manifest is read automatically and provides patchsize, voxel size, feature mode, adapter settings and labels.
## Files
- `model.onnx` – exported model (ONNX, opset 17, ~874 MB; tracked with Git LFS)- `model.onnx.meta.json` – full tensor / preprocessing / adapter specification- `config.yml` – training configuration used to build the model- `LICENSE` – MIT
## Inputs / outputs
Unlike the FKAConv exports, this graph takes a **fixed 65,536-point patch** and alarge set of precomputed neighbour / stride / window tables. Inputs include:
- `feat` – float32 `[65536, 3]` input features (xyz, centred to mid-range as in `SphereFormer.transform`)- `subm{0..4}_nin` – int32 SubMConv3d in-row neighbour tables- `car_cnt/srt/inv/q_{0..4}` and `sph_cnt/srt/inv/q/r_{0..4}` – cartesian and spherical window attention tables- `down{0..3}_nin/perm/bnd` and `inv{0..3}_nin` – stride-2 / inverse conv tables
Output:
| Output | Dtype | Shape | Description ||---|---|---|---|| `logits` | float32 | `[1, 65536, 9]` | per-point logits; `argmax` over the last axis = class index |
The complete, exact input list (names, dtypes, shapes) is in`model.onnx.meta.json`. The graph is **not** dynamic in batch or point count.
## Preprocessing
The metadata file contains a complete, ordered preprocessing recipe. Summary:
1. Voxel-grid subsample the raw cloud at `grid_size = 0.05`, keeping `proj_inds` to the original cloud.2. Sliding window: patch = kNN (`k = num_points`) around a randomly chosen sub-cloud centre (RandomSampler), shuffled; coverage accumulation as usual.3. Per patch: centre xyz to mid-range `(min+max)/2` (`transform`); features are the xyz sub-cloud (4 channels for Paris-Lille-3D including intensity).4. Voxel grid: `voxel = floor((xyz - min)/quant)` must be unique per patch.5. Neighbour tables: for each point/voxel and each of the 27 kernel offsets, the row of the occupied voxel at `coord + off`, else `-1`; `spatial_shape = ceil(extent/32) * 32`.6. Per branch (cartesian on xyz / spherical on `cart2sphere(xyz)`): windows = `floor((coords - min)/window)`, stable argsort of window id; window counts table = `[counts..., 1 per padding row, 0...]`; quant grid in SORTED order; spherical branch also stores radius `r` in SORTED order.7. Stride-2 pair tables per offset `k = 0..7` (`k = 4x + 2y + z` of `voxel % 2`): child row at level `l` → parent row `(child // 2)` at level `l+1`, padded to child capacity with `-1`.
## Usage (Python, ONNX Runtime)
```pythonimport onnxruntime as ortimport numpy as np
# Note: on the machine used for export, the CUDA execution provider was ~70x# slower than CPU for this graph and produced NaN/Inf; DirectML / CPU are# recommended. Adjust providers to your hardware.sess = ort.InferenceSession( "model.onnx", providers=["DmlExecutionProvider", "CPUExecutionProvider"],)
# `inputs` must contain every tensor listed in model.onnx.meta.json:logits = sess.run(["logits"], inputs)[0] # shape: [1, 65536, 9]pred = logits.argmax(axis=-1) # shape: [1, 65536]```
Preprocessing (voxelisation, neighbour-table construction, window sorting) is**not** part of the graph and must be replicated. See `model.onnx.meta.json` for reference.
## Runtime notes
- The graph replaces spconv (SubM / Sparse / Inverse convs) with neighbour/pair-table gathers and the sptr two-branch (cartesian/spherical) window attention with in-graph pair generation. All structural tensors are precomputed per patch.- Fixed capacities are baked into the exported graph; re-export if a patch exceeds them (see `caps` in `model.onnx.meta.json`).- CUDA execution provider performance for this attention graph can be poor on some hardware; the export machine used DirectML. Benchmark on your target.
## Limitations
- Fixed input size (65,536 points); patches must be padded/truncated to this size.- The graph expects many precomputed structural tensors; it is not a drop-in model for raw point clouds.- Trained on Paris-Lille-3D; performance on other LiDAR datasets or sensor configurations is not guaranteed.- Class 0 (unclassified) is ignored during training and evaluation.
## Citation
If you use this model, please cite the SphereFormer work and theParis-Lille-3D dataset. See the Open3D-ML repository for the full training setupand configs.
## License
MIT (see `LICENSE`).1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889dataset:
name: ParisLille3D
dataset_path: path/to/ParisLille3D
cache_dir: ./logs/cache
class_weights: [53033221, 25821560, 546190, 54417,
180638, 3998129, 160899, 3441844, 9681606]
ignored_label_inds:
- 0
num_points: 65536
test_result_folder: ./logs/test
val_files:
- Lille2.ply
use_cache: true
steps_per_epoch_train: 200
steps_per_epoch_valid: 40
sampler:
name: RegularSampler
model:
name: SphereFormerSemSeg
batcher: DefaultBatcher
is_resume: false
ckpt_path:
# Input configuration
in_channels: 3 # xyz + intensity
num_classes: 9
# Architecture
m: 32 # base channels
block_reps: 2
block_residual: true
layers: [32, 64, 128, 256, 256]
# Window sizes for Cartesian attention
window_size: [0.3, 0.3, 0.3]
quant_size: [0.05, 0.05, 0.05]
# Window sizes for spherical attention
window_size_sphere: [2.0, 2.0, 80.0]
quant_size_sphere: [0.5, 0.5, 2.0]
# Window scaling per level
window_size_scale: [2.0, 1.5]
# Sphere attention layers (1-indexed)
sphere_layers: [1, 2, 3, 4, 5]
# Attention settings
rel_query: true
rel_key: true
rel_value: true
drop_path_rate: 0.3
# Exponential splitting parameter
a: 0.0125
# Gradient checkpointing (for memory efficiency)
grad_checkpoint_layers: [1, 2, 3, 4, 5]
# Preprocessing
grid_size: 0.05
max_voxels: 80000
ignored_label_inds:
- 0
# Augmentation
augment:
recenter:
dim: [0, 1, 2]
workflow:
name: SemanticSegmentation
optimizer:
lr: 0.001
batch_size: 2
main_log_dir: ./logs
max_epoch: 1600
save_ckpt_freq: 5
scheduler_gamma: 0.9886
test_batch_size: 1
train_sum_dir: ./logs/train_log
val_batch_size: 2
summary:
record_for: []
max_pts:
use_reference: false
max_outputs: 1123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773{
"created": "2026-11-11T21:52:11",
"model_name": "SphereFormerSemSeg",
"checkpoint": "best_model_01284.pth",
"config": "sphereformer_parislille3d.yml",
"onnx_file": "sphereformer_parislille3d.onnx",
"inputs": [
{
"name": "feat",
"dtype": "float32",
"shape": [
65536,
3
],
"layout": "input features (xyz centered to mid-range as in SphereFormer.transform)"
},
{
"name": "subm0_nin",
"dtype": "int32",
"shape": [
65536,
27
],
"layout": "level-0 SubMConv3d(k=3) per-out-row in-row table (ROW-major: row = out row v, column = kernel offset k=0..26; value cap = the zero feature row appended in-graph; column 13 = self-pair)"
},
{
"name": "car_cnt0",
"dtype": "int32",
"shape": [
25018
],
"layout": "point counts per car window; then count-1 windows for padding rows; then zeros"
},
{
"name": "car_srt0",
"dtype": "int32",
"shape": [
65536
],
"layout": "car: sorted position -> actual row"
},
{
"name": "car_inv0",
"dtype": "int32",
"shape": [
65536
],
"layout": "car: actual row -> sorted position"
},
{
"name": "car_q0",
"dtype": "int32",
"shape": [
65536,
3
],
"layout": "cart RPE quant grid (x,y,z) in SORTED row order"
},
{
"name": "sph_cnt0",
"dtype": "int32",
"shape": [
19704
],
"layout": "point counts per sph window; then count-1 windows for padding rows; then zeros"
},
{
"name": "sph_srt0",
"dtype": "int32",
"shape": [
65536
],
"layout": "sph: sorted position -> actual row"
},
{
"name": "sph_inv0",
"dtype": "int32",
"shape": [
65536
],
"layout": "sph: actual row -> sorted position"
},
{
"name": "sph_q0",
"dtype": "int32",
"shape": [
65536,
2
],
"layout": "sphere RPE quant grid axes 0,1 (theta, beta) in SORTED row order"
},
{
"name": "sph_r0",
"dtype": "float32",
"shape": [
65536
],
"layout": "sphere radius (axis 2 / cart2sphere r) in SORTED row order; axis-2 table index is computed in-graph (exponential_split + clamp to [0, 2*qgl_s-1])"
},
{
"name": "subm1_nin",
"dtype": "int32",
"shape": [
53356,
27
],
"layout": "level-1 SubMConv3d(k=3) per-out-row in-row table (ROW-major: row = out row v, column = kernel offset k=0..26; value cap = the zero feature row appended in-graph; column 13 = self-pair)"
},
{
"name": "car_cnt1",
"dtype": "int32",
"shape": [
51421
],
"layout": "point counts per car window; then count-1 windows for padding rows; then zeros"
},
{
"name": "car_srt1",
"dtype": "int32",
"shape": [
53356
],
"layout": "car: sorted position -> actual row"
},
{
"name": "car_inv1",
"dtype": "int32",
"shape": [
53356
],
"layout": "car: actual row -> sorted position"
},
{
"name": "car_q1",
"dtype": "int32",
"shape": [
53356,
3
],
"layout": "cart RPE quant grid (x,y,z) in SORTED row order"
},
{
"name": "sph_cnt1",
"dtype": "int32",
"shape": [
52773
],
"layout": "point counts per sph window; then count-1 windows for padding rows; then zeros"
},
{
"name": "sph_srt1",
"dtype": "int32",
"shape": [
53356
],
"layout": "sph: sorted position -> actual row"
},
{
"name": "sph_inv1",
"dtype": "int32",
"shape": [
53356
],
"layout": "sph: actual row -> sorted position"
},
{
"name": "sph_q1",
"dtype": "int32",
"shape": [
53356,
2
],
"layout": "sphere RPE quant grid axes 0,1 (theta, beta) in SORTED row order"
},
{
"name": "sph_r1",
"dtype": "float32",
"shape": [
53356
],
"layout": "sphere radius (axis 2 / cart2sphere r) in SORTED row order; axis-2 table index is computed in-graph (exponential_split + clamp to [0, 2*qgl_s-1])"
},
{
"name": "subm2_nin",
"dtype": "int32",
"shape": [
30743,
27
],
"layout": "level-2 SubMConv3d(k=3) per-out-row in-row table (ROW-major: row = out row v, column = kernel offset k=0..26; value cap = the zero feature row appended in-graph; column 13 = self-pair)"
},
{
"name": "car_cnt2",
"dtype": "int32",
"shape": [
36990
],
"layout": "point counts per car window; then count-1 windows for padding rows; then zeros"
},
{
"name": "car_srt2",
"dtype": "int32",
"shape": [
30743
],
"layout": "car: sorted position -> actual row"
},
{
"name": "car_inv2",
"dtype": "int32",
"shape": [
30743
],
"layout": "car: actual row -> sorted position"
},
{
"name": "car_q2",
"dtype": "int32",
"shape": [
30743,
3
],
"layout": "cart RPE quant grid (x,y,z) in SORTED row order"
},
{
"name": "sph_cnt2",
"dtype": "int32",
"shape": [
37483
],
"layout": "point counts per sph window; then count-1 windows for padding rows; then zeros"
},
{
"name": "sph_srt2",
"dtype": "int32",
"shape": [
30743
],
"layout": "sph: sorted position -> actual row"
},
{
"name": "sph_inv2",
"dtype": "int32",
"shape": [
30743
],
"layout": "sph: actual row -> sorted position"
},
{
"name": "sph_q2",
"dtype": "int32",
"shape": [
30743,
2
],
"layout": "sphere RPE quant grid axes 0,1 (theta, beta) in SORTED row order"
},
{
"name": "sph_r2",
"dtype": "float32",
"shape": [
30743
],
"layout": "sphere radius (axis 2 / cart2sphere r) in SORTED row order; axis-2 table index is computed in-graph (exponential_split + clamp to [0, 2*qgl_s-1])"
},
{
"name": "subm3_nin",
"dtype": "int32",
"shape": [
11829,
27
],
"layout": "level-3 SubMConv3d(k=3) per-out-row in-row table (ROW-major: row = out row v, column = kernel offset k=0..26; value cap = the zero feature row appended in-graph; column 13 = self-pair)"
},
{
"name": "car_cnt3",
"dtype": "int32",
"shape": [
19685
],
"layout": "point counts per car window; then count-1 windows for padding rows; then zeros"
},
{
"name": "car_srt3",
"dtype": "int32",
"shape": [
11829
],
"layout": "car: sorted position -> actual row"
},
{
"name": "car_inv3",
"dtype": "int32",
"shape": [
11829
],
"layout": "car: actual row -> sorted position"
},
{
"name": "car_q3",
"dtype": "int32",
"shape": [
11829,
3
],
"layout": "cart RPE quant grid (x,y,z) in SORTED row order"
},
{
"name": "sph_cnt3",
"dtype": "int32",
"shape": [
19938
],
"layout": "point counts per sph window; then count-1 windows for padding rows; then zeros"
},
{
"name": "sph_srt3",
"dtype": "int32",
"shape": [
11829
],
"layout": "sph: sorted position -> actual row"
},
{
"name": "sph_inv3",
"dtype": "int32",
"shape": [
11829
],
"layout": "sph: actual row -> sorted position"
},
{
"name": "sph_q3",
"dtype": "int32",
"shape": [
11829,
2
],
"layout": "sphere RPE quant grid axes 0,1 (theta, beta) in SORTED row order"
},
{
"name": "sph_r3",
"dtype": "float32",
"shape": [
11829
],
"layout": "sphere radius (axis 2 / cart2sphere r) in SORTED row order; axis-2 table index is computed in-graph (exponential_split + clamp to [0, 2*qgl_s-1])"
},
{
"name": "subm4_nin",
"dtype": "int32",
"shape": [
4101,
27
],
"layout": "level-4 SubMConv3d(k=3) per-out-row in-row table (ROW-major: row = out row v, column = kernel offset k=0..26; value cap = the zero feature row appended in-graph; column 13 = self-pair)"
},
{
"name": "car_cnt4",
"dtype": "int32",
"shape": [
12225
],
"layout": "point counts per car window; then count-1 windows for padding rows; then zeros"
},
{
"name": "car_srt4",
"dtype": "int32",
"shape": [
4101
],
"layout": "car: sorted position -> actual row"
},
{
"name": "car_inv4",
"dtype": "int32",
"shape": [
4101
],
"layout": "car: actual row -> sorted position"
},
{
"name": "car_q4",
"dtype": "int32",
"shape": [
4101,
3
],
"layout": "cart RPE quant grid (x,y,z) in SORTED row order"
},
{
"name": "sph_cnt4",
"dtype": "int32",
"shape": [
12326
],
"layout": "point counts per sph window; then count-1 windows for padding rows; then zeros"
},
{
"name": "sph_srt4",
"dtype": "int32",
"shape": [
4101
],
"layout": "sph: sorted position -> actual row"
},
{
"name": "sph_inv4",
"dtype": "int32",
"shape": [
4101
],
"layout": "sph: actual row -> sorted position"
},
{
"name": "sph_q4",
"dtype": "int32",
"shape": [
4101,
2
],
"layout": "sphere RPE quant grid axes 0,1 (theta, beta) in SORTED row order"
},
{
"name": "sph_r4",
"dtype": "float32",
"shape": [
4101
],
"layout": "sphere radius (axis 2 / cart2sphere r) in SORTED row order; axis-2 table index is computed in-graph (exponential_split + clamp to [0, 2*qgl_s-1])"
},
{
"name": "down0_nin",
"dtype": "int32",
"shape": [
53356,
8
],
"layout": "stride-2 conv level 0: per-parent unique-child table (ROW-major: row = parent p, column = offset k=0..7, 4x+2y+z of voxel%2; value cap = zero row of the aggregated child feats)"
},
{
"name": "down0_perm",
"dtype": "int32",
"shape": [
65536
],
"layout": "stride-2 conv: child rows sorted by voxel (stable); duplicate voxel rows aggregate via f64 cumsum segment sums over these segments"
},
{
"name": "down0_bnd",
"dtype": "int32",
"shape": [
65537
],
"layout": "stride-2 conv: segment boundaries of the sorted rows per unique voxel (padded segments are empty)"
},
{
"name": "inv0_nin",
"dtype": "int32",
"shape": [
65536,
8
],
"layout": "inverse conv level 0: per-child-row parent table (ROW-major: row = child row c, column = offset k=0..7; value C[l+1] = zero parent row appended in-graph)"
},
{
"name": "down1_nin",
"dtype": "int32",
"shape": [
30743,
8
],
"layout": "stride-2 conv level 1: per-parent unique-child table (ROW-major: row = parent p, column = offset k=0..7, 4x+2y+z of voxel%2; value cap = zero row of the aggregated child feats)"
},
{
"name": "down1_perm",
"dtype": "int32",
"shape": [
53356
],
"layout": "stride-2 conv: child rows sorted by voxel (stable); duplicate voxel rows aggregate via f64 cumsum segment sums over these segments"
},
{
"name": "down1_bnd",
"dtype": "int32",
"shape": [
53357
],
"layout": "stride-2 conv: segment boundaries of the sorted rows per unique voxel (padded segments are empty)"
},
{
"name": "inv1_nin",
"dtype": "int32",
"shape": [
53356,
8
],
"layout": "inverse conv level 1: per-child-row parent table (ROW-major: row = child row c, column = offset k=0..7; value C[l+1] = zero parent row appended in-graph)"
},
{
"name": "down2_nin",
"dtype": "int32",
"shape": [
11829,
8
],
"layout": "stride-2 conv level 2: per-parent unique-child table (ROW-major: row = parent p, column = offset k=0..7, 4x+2y+z of voxel%2; value cap = zero row of the aggregated child feats)"
},
{
"name": "down2_perm",
"dtype": "int32",
"shape": [
30743
],
"layout": "stride-2 conv: child rows sorted by voxel (stable); duplicate voxel rows aggregate via f64 cumsum segment sums over these segments"
},
{
"name": "down2_bnd",
"dtype": "int32",
"shape": [
30744
],
"layout": "stride-2 conv: segment boundaries of the sorted rows per unique voxel (padded segments are empty)"
},
{
"name": "inv2_nin",
"dtype": "int32",
"shape": [
30743,
8
],
"layout": "inverse conv level 2: per-child-row parent table (ROW-major: row = child row c, column = offset k=0..7; value C[l+1] = zero parent row appended in-graph)"
},
{
"name": "down3_nin",
"dtype": "int32",
"shape": [
4101,
8
],
"layout": "stride-2 conv level 3: per-parent unique-child table (ROW-major: row = parent p, column = offset k=0..7, 4x+2y+z of voxel%2; value cap = zero row of the aggregated child feats)"
},
{
"name": "down3_perm",
"dtype": "int32",
"shape": [
11829
],
"layout": "stride-2 conv: child rows sorted by voxel (stable); duplicate voxel rows aggregate via f64 cumsum segment sums over these segments"
},
{
"name": "down3_bnd",
"dtype": "int32",
"shape": [
11830
],
"layout": "stride-2 conv: segment boundaries of the sorted rows per unique voxel (padded segments are empty)"
},
{
"name": "inv3_nin",
"dtype": "int32",
"shape": [
11829,
8
],
"layout": "inverse conv level 3: per-child-row parent table (ROW-major: row = child row c, column = offset k=0..7; value C[l+1] = zero parent row appended in-graph)"
}
],
"output": {
"name": "logits",
"dtype": "float32",
"shape": [
"batch",
"num_points",
"num_classes"
],
"layout": "[B, N, num_classes] per-point logits; argmax over last axis = label",
"kind": "logits"
},
"execution": {
"provider": "dml",
"note": "the CUDA kernels for this attention graph are ~70x slower than the CPU (~688 s vs ~10 s per 32k forward) and produce NaN/Inf outputs on this machine; DirectML runs the same graph ~2.3x faster than the CPU EP and numerically matches it (max |diff| 5e-4, identical argmax). Provider order in Auto: DirectML, then the CPU."
},
"in_channels": 3,
"num_classes": 9,
"ignored_label_inds": [
0
],
"num_points": 65536,
"dynamic_axes": {
"batch": false,
"num_points": false
},
"opset": 17,
"versions": {
"torch": "2.6.0+cu126",
"onnx": "1.23.2",
"onnxruntime": "1.23.2",
"onnxruntime_available_providers": [
"TensorrtExecutionProvider",
"CUDAExecutionProvider",
"CPUExecutionProvider"
]
},
"providers": [
"CUDAExecutionProvider",
"CPUExecutionProvider"
],
"adapter": {
"fixed_shape": true,
"num_levels": 5,
"channels": [
32,
64,
128,
256,
256
],
"branches": "cart (windows on xyz) + sphere (windows on cart2sphere(xyz), theta/beta quant grid + exponential_split radius axis)",
"caps": {
"C": [
null,
53356,
30743,
11829,
4101
],
"W": {
"car0": 25018,
"sph0": 19704,
"car1": 51421,
"sph1": 52773,
"car2": 36990,
"sph2": 37483,
"car3": 19685,
"sph3": 19938,
"car4": 12225,
"sph4": 12326
},
"M": {
"car0": 5463445,
"sph0": 21319604,
"car1": 2005309,
"sph1": 3095338,
"car2": 1799408,
"sph2": 1493841,
"car3": 1035276,
"sph3": 367242,
"car4": 322620,
"sph4": 59557
}
},
"notes": "SphereFormer export replaces spconv (SubM/Sparse/Inverse convs) with neighbor/pair-table gathers + einsum/scatter ops, and the sptr two-branch (cart/sphere) window attention with in-graph pair generation from window counts, per-query CSR softmax (scatter amax/add), and relative-position tables gathered by in-graph quantization indices. All structural tensors are precomputed per patch (fixed capacities: re-export if a patch exceeds them).",
"id": "SphereFormer",
"window": {
"car_window": [
0.3,
0.3,
0.3,
0.6,
0.6,
0.6,
1.2,
1.2,
1.2,
2.4,
2.4,
2.4,
4.8,
4.8,
4.8
],
"car_quant": [
0.05,
0.05,
0.05,
0.1,
0.1,
0.1,
0.2,
0.2,
0.2,
0.4,
0.4,
0.4,
0.8,
0.8,
0.8
],
"sph_window": [
2.0,
2.0,
80.0,
3.0,
3.0,
80.0,
4.5,
4.5,
80.0,
6.75,
6.75,
80.0,
10.125,
10.125,
80.0
],
"sph_quant": [
0.5,
0.5,
2.0,
0.75,
0.75,
2.0,
1.125,
1.125,
2.0,
1.6875,
1.6875,
2.0,
2.53125,
2.53125,
2.0
]
},
"window_note": "Per-level window/quant constants of the trained model (config window_size/quant_size with the window_size_scale [2.0, 1.5] recursion; collected from the built model attributes 2026-11-18). Flat 5 levels x 3 axes."
},
"preprocessing": {
"description": "SphereFormer preprocessing; replicate in C++ (see README.md).",
"voxel_size": 0.05,
"num_points": 65536,
"channels": 3,
"steps": [
"1. voxel-grid subsample the raw cloud at grid_size=0.05, keep proj_inds to the original cloud",
"2. sliding window: patch = kNN (k=num_points) around a randomly chosen sub-cloud center (RandomSampler), shuffled; coverage accumulation as usual",
"3. per patch: center xyz to mid-range (min+max)/2 (transform), feat = xyz sub-cloud features (4 channels for ParisLille3D: intensity)",
"4. voxel grid: voxel = floor((xyz - min)/quant) must be unique per patch (holds for patches sampled from the 0.05-subsampled cloud)",
"5. neighbor tables: for each point/voxel and each of the 27 kernel offsets, the row of the occupied voxel at coord+off within [0, spatial_shape), else -1; spatial_shape = ceil(extent/32)*32",
"6. per branch (cart on xyz / sphere on cart2sphere): windows = floor((coords - min)/window), sort = stable argsort of window id; window counts table = [counts..., 1 per padding row, 0...]; quant grid = floor(((coords - min) % window)/quant) in SORTED order; sphere branch also stores the radius r in SORTED order",
"7. stride-2 pair tables per offset k=0..7 (k = 4x+2y+z of voxel%2): child row at level l -> parent row (child//2) at level l+1, padded to the child capacity with -1 (deconv also consumes these tables: inverse conv output rows gather their parent feature with the same offset k)"
],
"shift_min": false,
"augment": {
"recenter": false
},
"augment_note": "recenter=false: the adapter centers each patch to its mid-range (snapped to the quant size) itself - the FKAConv-style mean recenter must NOT run."
},
"schema_version": "1.0",
"labels": {
"values": [
1,
2,
3,
4,
5,
6,
7,
8,
9
],
"names": [
"ground",
"building",
"pole-road_sign-traffic_light",
"bollard-small_pole",
"trash_can",
"barrier",
"pedestrian",
"car",
"natural-vegetation"
],
"description": "Dataset label value per model class index. ParisLille3D: label 0 = 'unclassified' is the ignored_label_ind, so the 9 model classes map to dataset labels 1..9 (sorted non-ignored labels)."
}
}.gitattributes+1-34
LICENSEAdded+21
README.mdAdded+111
fkaconv-parislille3d/README.mdAdded+170
fkaconv-parislille3d/config.ymlAdded+69
fkaconv-parislille3d/model.onnx.meta.jsonAdded+306
fkaconv-semantic3d/README.mdAdded+170
fkaconv-semantic3d/config.ymlAdded+70
fkaconv-semantic3d/model.onnx.meta.jsonAdded+304
sphereformer-parislille3d/README.mdAdded+195
sphereformer-parislille3d/config.ymlAdded+89
sphereformer-parislille3d/model.onnx.meta.jsonAdded+773