|
Download README.md from DeepLearnPhysics/Panda-V2-Decoder: direct link, hf CLI and curl.
- Browser
- Download file 1.37 kB
-
https://huggingface.co/DeepLearnPhysics/Panda-V2-Decoder/resolve/main/README.md
- Command line
-
hf download hf://DeepLearnPhysics/Panda-V2-Decoder/README.md
-
curl -L -o README.md https://huggingface.co/DeepLearnPhysics/Panda-V2-Decoder/resolve/main/README.md
1.37 kB
| 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. | |