Downloads · 30 days
4
16% of all-time downloads
FanMingyu/cstnet2-stage1-all
cstnet2-stage1-all is a feature extraction model from FanMingyu. Use it when you need embeddings to search or compare text. It is set up for pytorch. The card lists the license as mit.
This repository contains the trained CSTNet2 Stage 1 Attn3DGCN checkpoints. The model predicts per-point primitive type and instance embedding, then uses clustering and primitive fitting to construct the final geometr…
Downloads · 30 days
4
16% of all-time downloads
All-time downloads
25
Public
Repo size
39.5 MB
Likes
0
Public
Click a slice to open those files.
.pth39.5 MB · 100%
From the Hugging Face model README
This repository contains the trained CSTNet2 Stage 1 Attn3DGCN checkpoints. The model predicts per-point primitive type and instance embedding, then uses clustering and primitive fitting to construct the final geometric constraint representation.
Source code: xcheng-tsinghua/cstnet2
Training dataset: ZXCCHENGXI/cstnet2_stage1_mini
semantic/
last.pth
best_pmt_miou.pth
best_cluster_ari.pth
best_constraint_score.pth
geometry/
last.pth
best_pmt_miou.pth
best_cluster_ari.pth
best_constraint_score.pth
joint/
last.pth
best_pmt_miou.pth
best_cluster_ari.pth
best_constraint_score.pth
For downstream constraint extraction, start with
joint/best_constraint_score.pth. The other phases are included for
reproducibility and phase-specific analysis.
These are best training-set metrics stored in each phase checkpoint; no held-out validation split was used for checkpoint selection.
| Phase | Primitive mIoU | Cluster ARI | Constraint score |
|---|---|---|---|
| Semantic | 0.408995 | 0.494068 | 0.451532 |
| Geometry | 0.422432 | 0.560268 | 0.491337 |
| Joint | 0.432907 | 0.525952 | 0.479429 |
import torch
from functional.point_features import stage1_feature_dim
from networks.cst_pred_wrapper import CstPredWrapper
checkpoint = torch.load(
"joint/best_constraint_score.pth",
map_location="cpu",
weights_only=False,
)
args = checkpoint["args"]
model = CstPredWrapper(
args["model"],
channel_fea=stage1_feature_dim(args.get("use_extra_features", True)),
)
model.load_state_dict(checkpoint["model"], strict=True)
model.eval()
The repository source code is required for feature construction, clustering, and geometric primitive fitting.