Document v2.0.0: training data, canonicalisation, eval results
Browse files
README.md
CHANGED
|
@@ -27,40 +27,78 @@ auto-rigger as placement priors.
|
|
| 27 |
## Model
|
| 28 |
|
| 29 |
- **Input:** a sampled point cloud `float32 [1, N, 3]` (normalised to a centred
|
| 30 |
-
unit box).
|
| 31 |
- **Output:** per-point class logits over 7 labels
|
| 32 |
(`unknown, head, torso, left_arm, right_arm, left_leg, right_leg`); argmax β
|
| 33 |
label, scattered back to mesh vertices/faces by nearest sampled point.
|
|
|
|
|
|
|
|
|
|
| 34 |
- When the model is unavailable, QtMeshEditor falls back to a deterministic
|
| 35 |
**geometric** segmenter (connected-component islands + an up-axis/lateral
|
| 36 |
spatial heuristic, refined by skeleton-bone proximity when the mesh is rigged).
|
| 37 |
|
| 38 |
## Training data & license
|
| 39 |
|
| 40 |
-
Trained **from scratch** on
|
| 41 |
-
|
| 42 |
-
|
| 43 |
-
datasets (ShapeNet-Part, PartNet), which are **non-commercial** and therefore
|
| 44 |
-
incompatible with QtMeshEditor's permissive (MIT) distribution.
|
| 45 |
|
| 46 |
-
|
| 47 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 48 |
|
| 49 |
Weights released under **CC-BY-4.0**; please credit *QtMeshEditor*.
|
| 50 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 51 |
## Reproducing
|
| 52 |
|
| 53 |
`scripts/export-meshseg-onnx.py` in the QtMeshEditor repo (one-time, offline;
|
| 54 |
-
not shipped with the app).
|
|
|
|
|
|
|
| 55 |
|
| 56 |
## Versions
|
| 57 |
|
| 58 |
-
- **
|
| 59 |
-
|
| 60 |
-
|
| 61 |
-
|
| 62 |
-
|
| 63 |
-
|
| 64 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 65 |
- **v1.0.0** β initial flat-PointNet model on synthetic primitive humanoids
|
| 66 |
(arms-down only; over-assigned lateral protrusions to "arm").
|
|
|
|
| 27 |
## Model
|
| 28 |
|
| 29 |
- **Input:** a sampled point cloud `float32 [1, N, 3]` (normalised to a centred
|
| 30 |
+
unit box; +Y up, character facing +Z, left limbs at +X).
|
| 31 |
- **Output:** per-point class logits over 7 labels
|
| 32 |
(`unknown, head, torso, left_arm, right_arm, left_leg, right_leg`); argmax β
|
| 33 |
label, scattered back to mesh vertices/faces by nearest sampled point.
|
| 34 |
+
- **Architecture (v2):** shared per-point MLP + two kNN local-aggregation
|
| 35 |
+
blocks (in-graph `cdist`+`topk`, ONNX-exportable) + a global max-pooled
|
| 36 |
+
feature; ~0.78 MB. Trained at the app's inference sample size (4096 points).
|
| 37 |
- When the model is unavailable, QtMeshEditor falls back to a deterministic
|
| 38 |
**geometric** segmenter (connected-component islands + an up-axis/lateral
|
| 39 |
spatial heuristic, refined by skeleton-bone proximity when the mesh is rigged).
|
| 40 |
|
| 41 |
## Training data & license
|
| 42 |
|
| 43 |
+
Trained **from scratch** on two permissive sources (no ShapeNet-Part / PartNet β
|
| 44 |
+
those are **non-commercial** and incompatible with QtMeshEditor's permissive
|
| 45 |
+
MIT distribution):
|
|
|
|
|
|
|
| 46 |
|
| 47 |
+
1. **Synthetic surface-sampled bodies (CC0, ours):** three parametric body
|
| 48 |
+
plans β humanoid (normal / chibi / lanky proportion regimes, ears/muzzle
|
| 49 |
+
head bumps, posed arms, feet pointing +Z), quadruped (all four legs
|
| 50 |
+
labelled by side, tail β torso), and biped-with-tail (dino) β with exact
|
| 51 |
+
by-construction labels and randomised per-part point density (real
|
| 52 |
+
characters put 30β50% of their vertices in the head/face).
|
| 53 |
+
2. **CC0 rigged characters** (Quaternius packs β humanoids, farm animals,
|
| 54 |
+
dinosaurs, monsters) mined for **exact rig-derived labels** (bone weights β
|
| 55 |
+
bone name β part) via `qtmesh segment --dump-training-data`. Each mined
|
| 56 |
+
cloud is canonicalised into the training frame from its own labels and its
|
| 57 |
+
arm/leg sides are reassigned geometrically. A provenance ledger of every
|
| 58 |
+
pack is kept with the training corpus.
|
| 59 |
+
|
| 60 |
+
Mixamo characters are used **for evaluation only** β never trained on.
|
| 61 |
|
| 62 |
Weights released under **CC-BY-4.0**; please credit *QtMeshEditor*.
|
| 63 |
|
| 64 |
+
## Evaluation (v2)
|
| 65 |
+
|
| 66 |
+
Measured per-vertex against **exact rig-derived ground truth** (bone-weight
|
| 67 |
+
labels), replicating the app's inference path (4096-point sample, nearest-point
|
| 68 |
+
scatter):
|
| 69 |
+
|
| 70 |
+
| eval set | v1.1.0 | v2.0.0 |
|
| 71 |
+
|---|---|---|
|
| 72 |
+
| Mixamo rig-truth, 3 characters (out-of-distribution, eval-only) | 31.5% | **94.7%** |
|
| 73 |
+
| held-out CC0 rigs (suit, dress, sheep, velociraptor) | β | 97.0% |
|
| 74 |
+
| held-out synthetic bodies | β | 95.6% |
|
| 75 |
+
|
| 76 |
+
Per-part recall on the Mixamo set (v2): head 0.99, torso 0.80, left arm 0.99,
|
| 77 |
+
right arm 1.00, left leg 0.87, right leg 0.96. Torso is lowest by construction:
|
| 78 |
+
the ground truth comes from skinning weights, whose shoulder/hip boundaries
|
| 79 |
+
don't coincide exactly with any geometric boundary.
|
| 80 |
+
|
| 81 |
## Reproducing
|
| 82 |
|
| 83 |
`scripts/export-meshseg-onnx.py` in the QtMeshEditor repo (one-time, offline;
|
| 84 |
+
not shipped with the app). The full v1 failure analysis, data pipeline, and
|
| 85 |
+
multi-category roadmap live in the repo's
|
| 86 |
+
`docs/MESH_SEGMENTATION_STRATEGY.md`.
|
| 87 |
|
| 88 |
## Versions
|
| 89 |
|
| 90 |
+
- **v2.0.0** (current) β full data-pipeline rebuild fixing v1's real-mesh
|
| 91 |
+
failures: **surface** sampling instead of volumetric primitive fills,
|
| 92 |
+
**connected** bodies, **chibi/cartoon proportions** (v1 collapsed
|
| 93 |
+
big-headed characters to all-torso), randomised per-part vertex density,
|
| 94 |
+
**correct left/right handedness** (v1's training data was mirrored vs the
|
| 95 |
+
rig convention), quadruped + biped-tail body plans, mined CC0 rigs with
|
| 96 |
+
label-driven canonicalisation, a deeper two-block kNN network, and
|
| 97 |
+
fine-tuning at the app's 4096-point inference size (v1 trained at 1024).
|
| 98 |
+
31.5% β **94.7%** on rig-truth eval. ~0.78 MB.
|
| 99 |
+
- **v1.1.0** β retrained with T/A-pose arms, upright + yaw-only augmentation,
|
| 100 |
+
head-protrusion samples, wider proportions, and a PointNet++-style local kNN
|
| 101 |
+
feature. Clean on synthetic humanoids but poor transfer to real meshes
|
| 102 |
+
(volumetric sampling, flipped handedness). ~0.58 MB.
|
| 103 |
- **v1.0.0** β initial flat-PointNet model on synthetic primitive humanoids
|
| 104 |
(arms-down only; over-assigned lateral protrusions to "arm").
|