Khaos Mesh Embedding

A DGCNN encoder that maps 512 surface points with normals of a mesh to a unit-length 256-dimensional vector for similarity search, trained with contrastive learning, category supervision and shape-descriptor regression.

geo_mesh_embedding v1, from Khaos (a local-first library of pre-trained models for domain-specific tasks). This is the first release of the artifact.

Model

  • Architecture: MeshEncoder: three EdgeConv layers (k=16) on xyz + normals, max and mean pooling, MLP projection, L2 normalization
  • Parameters: 972,036
  • Format: ONNX (model.onnx) plus PyTorch weights (model.pt) and manifest.json
  • Training data: fletxcher/khaos-geo_mesh_embedding

Results

Measured on the held-out test split of the training dataset.

Metric Value
retrieval_top1 0.7538
retrieval_top5 0.7180
baseline_descriptors_top1 0.3769
baseline_descriptors_top5 0.3110
n_test_queries 910
deepcad_descriptor_distance_top5 1.9013
deepcad_descriptor_distance_random 4.2809

Mechanical CAD (DeepCAD)

DeepCAD parts have no category labels. For 306 test parts, the top-5 retrieved training shapes are 1.90 descriptor-standard-deviations away on average, against 4.28 for random shapes (lower is better).

Training

{
  "epochs": 40,
  "batch": 32,
  "lr": 0.001,
  "num_points": 512,
  "architecture": "MeshEncoder"
}

Best epoch 27, trained in 31.0 minutes on a single consumer GPU (RTX 3050 8 GB).

Intended use

Finding similar parts in a CAD library: sample each mesh to 512 surface points with normals, embed, and compare with cosine similarity.

Limitations

  • Trained on ModelNet40 objects and DeepCAD parts; similarity of other kinds of geometry is untested.
  • Sees points and normals, not mesh topology.
  • DeepCAD parts are unlabelled, so mechanical retrieval quality is only checked by descriptors.

Usage

pip install khaos
khaos serve ./geo_mesh_embedding

License

This model was trained on data that includes a non-commercial (CC BY-NC 4.0) source, so it is released for non-commercial use.

Downloads last month

-

Downloads are not tracked for this model. How to track
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support