youngsm commited on
Commit
4f9efb3
·
verified ·
1 Parent(s): 60a1308

One detector-agnostic decoder core; the detector zeroes the position tables

Browse files
README.md CHANGED
@@ -5,25 +5,22 @@ tags: [particle-physics, point-cloud, panoptic-segmentation]
5
 
6
  # Panda-V2-Decoder
7
 
8
- The query decoder of the Panda V2 detector (`panda-detector-v2m1`), pretrained on synthetic scenes and used to initialize the decoder in the Panda V2 fine-tuning recipes of [pimm](https://github.com/DeepLearnPhysics/particle-imaging-models).
9
 
10
- | File | Detector | Queries |
11
- |---|---|---|
12
- | `decoder_core_lartpc.pth` | LArTPC (PILArNet-M) | 44 |
13
- | `decoder_core_sphenix.pth` | sPHENIX | 64 |
14
- | `decoder_core_wc.pth` | water Cherenkov (WAND) | 32 |
15
 
16
- The three files hold the same pretrained decoder blocks and final norm (95 decoder-only entries). Only the query-position table differs: it is zero-filled to each detector's query count. The backbone, point projection, learned query features and class and regression heads are not included, so they keep their fresh initialization when a recipe loads a file.
17
-
18
- The recipes in `configs/panda/v2/finetune` load them with
19
 
20
  ```python
21
- dict(
22
- type="CheckpointLoader",
23
- source="hf://DeepLearnPhysics/Panda-V2-Decoder/decoder_core_lartpc.pth",
24
- replacements={"decoder.": "model.decoder."},
25
- strict=False,
26
- )
 
 
 
27
  ```
28
 
29
- `strict=False` is required because each file holds only the decoder.
 
5
 
6
  # Panda-V2-Decoder
7
 
8
+ The query decoder of the Panda V2 detector (`panda-detector-v2m1`), pretrained on synthetic scenes and used to initialize the decoder in the Panda V2 fine-tuning recipes of [pimm](https://github.com/DeepLearnPhysics/particle-imaging-models), for LArTPC, sPHENIX and water Cherenkov detectors alike.
9
 
10
+ `decoder_core.pth` holds the decoder blocks and final norm (92 tensors). The core was pretrained without query or point positional embeddings, so it has neither. Set `zero_init_positions=True` on the detector to start both at zero, as in the paper. The backbone, point projection, learned query features and class and regression heads keep their fresh initialization.
 
 
 
 
11
 
12
+ The recipes in `configs/panda/v2/finetune` load it with
 
 
13
 
14
  ```python
15
+ model = dict(model=dict(type="panda-detector-v2m1", zero_init_positions=True, ...))
16
+ hooks = [
17
+ dict(
18
+ type="CheckpointLoader",
19
+ source="hf://DeepLearnPhysics/Panda-V2-Decoder/decoder_core.pth",
20
+ replacements={"decoder.": "model.decoder."},
21
+ strict=False,
22
+ ),
23
+ ]
24
  ```
25
 
26
+ `strict=False` is required because the file holds only the decoder.
decoder_core_lartpc.pth → decoder_core.pth RENAMED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:61e4678450b77881d5d4ca8c31ce26915471f2ebe356f7a5f019d7d176ecc88a
3
- size 14568066
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c254940674c74ca6d72c4fb0c15e84211d931f17eb3b2e1f793bf17e9bcd0030
3
+ size 14257977
decoder_core_sphenix.pth DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:03969ba1d2911d97613d4c2abf79531ca4abdc6f823c63a6c358c046faaf3493
3
- size 14588647
 
 
 
 
decoder_core_wc.pth DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:ff75f827f33824710f2e695d1069d8e17002fd1fe5debdc44b72d441c46d51de
3
- size 14555374