paligemma2-detection

Paligemma-2 Open Class Object Detection Evaluation

As naturally open class detection models, Paligemma-2 models need a special evaluation protocol for a closed-set detection benchmark like COCO2017.

Prediction Building Protocol

Example

classes_per_call: 5

The total of 80 COCO2017 classes are divided into 16 groups by 5.

All predictions (e.g. <loc0001><loc0123><loc0530><loc1012> stop sign) are then extracted from all the 16 model outputs (which can naturally be imperfect and of arbitrary length). Class scores (e.g. for class stop sign) are calculated as geometric mean of generation probabilities of tokens in stop sign (e.g. a token for stop and a token for ` sign`).

In practice scores parsing implementation is a bit more complex because on the one hand it has to account for generation imperfections (e.g. <loc0001><loc0123><loc0530><loc1012> truck ; <loc0031><loc0900><loc0127><loc1000> ; - with no class predicted for the second bounding box), structure breaks etc. On the other hand the tokenizer itself may have its own rules set affecting the way how class_string will be split into tokens and how their scores must be extracted.

Results

There is a number of interesting questions related to how Paligemma-2 models perform on object detection task. In the present work we’ll try to find answers to them.

In all cases the COCO2017 validation mAP@[IoU=0.50:0.95] is used as object detection quality assessment metric.

Mix vs Pt

According to the official blog, “pt checkpoints are meant to be fine-tuned on a downstream task and were released for that purpose”, whereas “the mix models give a quick idea of the performance one would get when fine-tuning the pre-trained checkpoints on a downstream task”.

10b-448 models

3b-448 models

10b-448 models verbosity

Number of objects distribution, 10b-mix-448 Number of objects distribution, 10b-pt-448

Classes_per_call

Scores distribution

Model is usually pretty sure about the predicted classes as the 10th quantile is at 0.82 and the 20th is at 0.96.

Input Image Resolution

input resolution table

classes_per_call=1 classes_per_call=4

Model Size

model size table