Skip to main content

Run in Colab

Step through this example interactively
In-context learning (ICL) lets you attach annotated reference frames so Perceptron Mk1 can mimic that concept on a new target image. Use one exemplar for quick specialization or several exemplars to disambiguate between classes. For an open-ended (non-detection) ICL flow on video, see In-context learning (Video).

Single-image ICL

Find a mixer in a kitchen using a single annotated exemplar.

Multi-image ICL

Separate cats and dogs by providing multiple annotated exemplars for each class.

Key parameters (single or multi-image)

Annotate each exemplar with bbox() coordinates using the normalized 0–1000 grid. Bootstrap exemplars by hand or reuse accurate detections from a prior dry run.

Best practices

  • Use clean exemplars; quality beats quantity.
Run through the full Jupyter notebook here. Reach out to Perceptron support if you have questions.