File size: 1,371 Bytes
60a1308
 
 
 
 
 
 
4f9efb3
60a1308
d67f662
60a1308
4f9efb3
60a1308
 
4f9efb3
 
 
 
 
 
 
 
 
60a1308
 
4f9efb3
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
---
library_name: pimm
tags: [particle-physics, point-cloud, panoptic-segmentation]
---

# Panda-V2-Decoder

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.

`decoder_core.pth` holds the decoder blocks and final norm (92 tensors). The core was pretrained with a learned bank of 64 queries, but its attention had no positional terms for the queries or the points. Set `zero_init_positions=True` on the detector to start the query positional table (`query_embed`) and the point positional MLP's output at zero, as in the paper. The query bank is not included: the queries (`query_feat`), point projection and class and regression heads keep their fresh initialization, as in the paper.

The recipes in `configs/panda/v2/finetune` load it with

```python
model = dict(model=dict(type="panda-detector-v2m1", zero_init_positions=True, ...))
hooks = [
    dict(
        type="CheckpointLoader",
        source="hf://DeepLearnPhysics/Panda-V2-Decoder/decoder_core.pth",
        replacements={"decoder.": "model.decoder."},
        strict=False,
    ),
]
```

`strict=False` is required because the file holds only the decoder.