youngsm's picture
Call postprocess in the usage example: the detector returns raw query predictions
60ca286 verified
|
Raw History Blame Contribute Delete
1.05 kB
metadata
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, 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.

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. On GPUs without FlashAttention, pass attention_backend="torch" to pimm.from_pretrained.