File size: 1,054 Bytes
868f471
 
 
 
 
 
 
 
 
 
 
 
 
60ca286
 
868f471
 
7245d50
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
---
library_name: pimm
tags: [particle-physics, point-cloud, lora]
---

# panda-v2-instance.wand-sk-like

Instance segmentation with the Panda V2 detector (`panda-detector-v2m1`). The encoder is [`panda-v2.wand-sk-like`](https://huggingface.co/DeepLearnPhysics/panda-v2.wand-sk-like), pretrained on WAND SK-like, adapted with LoRA (rank 16) and fine-tuned with the head on all labelled events of WAND SK-like. These are the weights scored on the test split in the paper: the best validation checkpoint of run `panda-v2-wand-nall-nomix-nersc`.

```python
import pimm

model = pimm.from_pretrained("DeepLearnPhysics/panda-v2-instance.wand-sk-like", device="cuda")
output = model(batch)
instances = model.postprocess(output)  # per-point instance ids, classes and confidences
```

Prepare inputs with the evaluation transforms of `configs/panda/v2/wand-sk-like/instance-panda-v2m1-0a-lora.py` in [pimm](https://github.com/DeepLearnPhysics/particle-imaging-models). On GPUs without FlashAttention, pass `attention_backend="torch"` to `pimm.from_pretrained`.