﻿# PicoSAM2 on IMX500: centered prompts and the quantized result

PicoSAM2 fits segmentation into an imaging sensor by changing prompting and operators. Its quantized table row differs from the headline accuracy.

Author: Retrivium editorial team
Updated: 2026-11-05
Canonical URL: https://retrivium.ai/journal/picosam2-imx500-centered-prompt-quantized-segmentation/
Language: en

PicoSAM2 investigates how prompt-guided segmentation can fit inside a Sony IMX500 imaging sensor. The design changes the model and its prompting contract to meet that target. It is not the full SAM2 image-and-video system running unchanged on a camera.

## A specialized in-sensor result

The [IBM research record](https://research.ibm.com/publications/picosam2-low-latency-segmentation-in-sensor-for-edge-vision-applications) identifies the SENSORS 2025 work and reports a model with 1.3M parameters. Its headline combines compact segmentation with 14.3 ms inference on IMX500 after quantization. These are author results on a specialized sensor processor, not measurements on an ordinary laptop CPU or discrete GPU.

The hardware question is more specific than whether the weights fit. The model also has to use supported operators and an accepted deployment format. A general-purpose segmentation network with a similar parameter count might fail that contract even if its saved file is small enough.

## The point prompt becomes a spatial prior

The [full PicoSAM2 paper](https://arxiv.org/html/2506.18807v3) explains its RGB-only interface: training crops place the selected prompt point at the center. The student learns this spatial prior, while the teacher supplies explicitly prompted supervision. Runtime input does not include an unrestricted extra prompt channel.

This changes what promptable means. A target must be represented through the crop and its geometry, rather than assuming all full-model point or box interfaces remain available. The paper focuses on static images and removes temporal components. The existing [SAM2 session guide](/journal/fg2-sam2-video-session-object-memory/) explains the video-state behavior that this compact deployment does not reproduce.

## Keep floating and quantized rows separate

The detailed paper table gives the floating PicoSAM2 row 336M MACs and COCO/LVIS mIoU of 51.9/44.9. The quantized Q-PicoSAM2 row instead lists 324M MACs, 1.22 MB, 50.5/45.1 mIoU and the 14.3 ms IMX500 latency.

Those rows should not be collapsed into a single artifact with the most favorable value from each column. They describe different forms of the model. The latency is a model inference measurement; it does not establish camera exposure-to-display delay, interaction latency or complete application frame rate. Other baseline results were drawn from prior work, so the table is not a fresh identical-hardware replication of every competing system.

## A model file is only part of camera deployment

The [Raspberry Pi AI Camera documentation](https://www.raspberrypi.com/documentation/accessories/ai-camera.html) separates network execution on IMX500 from host-side interpretation and application display. Its deployment process includes quantization, conversion and packaging for the sensor. Standard ONNX export alone therefore does not establish that a network has been accepted and run there.

For a segmentation application, preserve the transform between the camera image, input crop and returned mask. A correctly computed mask can still be misplaced when overlaid on the source image. The [segmentation geometry guide](/journal/fg2-segformer-logit-resize-class-order/) supplies relevant context for keeping score resizing and final labels consistent.

## Distinguish the original work from the evolving repository

The [author repository](https://github.com/pbonazzi/picosam3) now covers PicoSAM2 and PicoSAM3, with separate checkpoint references and a newer ROI demonstration. Its present demonstration should not silently be substituted for the original PicoSAM2 experiment or used to improve the older reported scores.

A useful follow-up would identify the exact student artifact and compiled network, test centered targets and crop-boundary failures, and measure both sensor inference and the complete camera interaction. PicoSAM2 establishes a concrete compact design for a constrained execution engine; application responsiveness and prompt flexibility remain separate questions.
