youngsm commited on
Commit
49d7a0a
·
verified ·
1 Parent(s): 277f335

pimm export (config.json)

Browse files
Files changed (3) hide show
  1. README.md +26 -1
  2. config.json +47 -0
  3. model.safetensors +3 -0
README.md CHANGED
@@ -1,3 +1,28 @@
1
  ---
2
- license: mit
 
 
 
 
3
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
+ library_name: pimm
3
+ tags:
4
+ - particle-physics
5
+ - lartpc
6
+ - point-cloud
7
  ---
8
+
9
+ # PoLAr-MAE — semantic segmentation
10
+
11
+ [PoLAr-MAE](https://arxiv.org/abs/2502.02558) fine-tuned for 4-class LArTPC semantic segmentation (shower, track, Michel, delta); reproduces the paper mF1 ≈ 0.82.
12
+
13
+ - **pimm type:** `PoLArMAE-SemSeg` · 4 classes
14
+
15
+ > Faithful eval needs PoLAr-MAE preprocessing: `LogTransform(min_val=0.13)`, `energy_threshold=0.13`, `remove_low_energy_scatters=True`. Coordinate normalization is in-model.
16
+
17
+ ## Loading
18
+
19
+ ```python
20
+ import pimm
21
+ model = pimm.from_pretrained("hf://deeplearnphysics/polar-mae-semantic")
22
+ ```
23
+
24
+ Architecture + hyper-parameters travel in `config.json`; weights are bitwise-identical to the original checkpoint.
25
+
26
+ ## Provenance
27
+
28
+ Repackaged from the original [PoLAr-MAE](https://github.com/DeepLearnPhysics/PoLAr-MAE) release checkpoints into the [pimm](https://github.com/youngsm/particle-imaging-models) export format. Inherits the source repo license.
config.json ADDED
@@ -0,0 +1,47 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "model": {
3
+ "type": "PoLArMAE-SemSeg",
4
+ "num_classes": 4,
5
+ "arch": "vit_small",
6
+ "voxel_size": 5.0,
7
+ "num_channels": 4,
8
+ "seg_head_fetch_layers": [
9
+ 3,
10
+ 7,
11
+ 11
12
+ ],
13
+ "seg_head_combination_method": "mean",
14
+ "seg_head_dim": 512,
15
+ "seg_head_dropout": 0.5,
16
+ "freeze_encoder": false,
17
+ "apply_encoder_postnorm": false,
18
+ "condition_global_features": true,
19
+ "upsampling_k": 5,
20
+ "center": [
21
+ 384.0,
22
+ 384.0,
23
+ 384.0
24
+ ],
25
+ "scale": 0.0015035163260146505,
26
+ "transformer_kwargs": {
27
+ "postnorm": false,
28
+ "add_pos_at_every_layer": true,
29
+ "drop_rate": 0.0,
30
+ "attn_drop_rate": 0.05,
31
+ "drop_path_rate": 0.25
32
+ },
33
+ "criteria": [
34
+ {
35
+ "type": "CrossEntropyLoss",
36
+ "loss_weight": 1.0,
37
+ "ignore_index": -1
38
+ },
39
+ {
40
+ "type": "LovaszLoss",
41
+ "mode": "multiclass",
42
+ "loss_weight": 0.05,
43
+ "ignore_index": -1
44
+ }
45
+ ]
46
+ }
47
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b2de651fffcf83e22d388a56f315e031836b86195b022d7c869b4c3993fbd90f
3
+ size 91470268