One detector-agnostic decoder core; the detector zeroes the position tables
Browse filesFiles changed (4)
- README.md+13-16
- decoder_core_lartpc.pth → decoder_core.pthRenamed+2-2
- decoder_core_sphenix.pthDeleted-3
- decoder_core_wc.pthDeleted-3
4 unmodified lines56788910111213141011161718121314151621222324252617181920212223242529264 unmodified lines
# 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).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.
| File | Detector | Queries ||---|---|---|| `decoder_core_lartpc.pth` | LArTPC (PILArNet-M) | 44 || `decoder_core_sphenix.pth` | sPHENIX | 64 || `decoder_core_wc.pth` | water Cherenkov (WAND) | 32 |`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.
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.
The recipes in `configs/panda/v2/finetune` load them withThe recipes in `configs/panda/v2/finetune` load it with
```pythonmodel = dict(model=dict(type="panda-detector-v2m1", zero_init_positions=True, ...))hooks = [dict( type="CheckpointLoader", source="hf://DeepLearnPhysics/Panda-V2-Decoder/decoder_core_lartpc.pth", replacements={"decoder.": "model.decoder."}, strict=False,) dict( type="CheckpointLoader", source="hf://DeepLearnPhysics/Panda-V2-Decoder/decoder_core.pth", replacements={"decoder.": "model.decoder."}, strict=False, ),]```
`strict=False` is required because each file holds only the decoder.`strict=False` is required because the file holds only the decoder.12323version https://git-lfs.github.com/spec/v1oid sha256:61e4678450b77881d5d4ca8c31ce26915471f2ebe356f7a5f019d7d176ecc88asize 14568066oid sha256:c254940674c74ca6d72c4fb0c15e84211d931f17eb3b2e1f793bf17e9bcd0030size 14257977123version https://git-lfs.github.com/spec/v1oid sha256:03969ba1d2911d97613d4c2abf79531ca4abdc6f823c63a6c358c046faaf3493size 14588647123version https://git-lfs.github.com/spec/v1oid sha256:ff75f827f33824710f2e695d1069d8e17002fd1fe5debdc44b72d441c46d51desize 14555374README.md+13-16
decoder_core_lartpc.pth → decoder_core.pthRenamed+2-2
decoder_core_sphenix.pthDeleted-3
decoder_core_wc.pthDeleted-3