Skip to content

Guide automatic labeling with reference images ​

With a «Generic API» model, Auto Labeling can take up to three labeled images of your dataset as examples. The model sees how they are labeled and looks for the same kind of object, which settles what a short prompt leaves open. In this guide the tag «item» first gets one box around the whole pack, and one box per biscuit once two examples go with it.

What you will learn

  • Which models take reference images
  • How to add references: suggested, chosen from the dataset, or the image on screen
  • What changes when the model has examples

Before you start

You need an object detection dataset with normal boxes, a tag, and a few images already labeled with it. Each run spends the project's tokens, and each reference adds to what a run spends.

1. Open Auto Labeling ​

Open an image that has no labels yet and choose «Auto Labeling», the sparkles in the toolbar.

Open Auto Labeling

2. Choose a Generic API model ​

Set «Model type» to «Generic API»: large language models from external providers, which read the image and your prompts. Only they take reference images, and only in object detection datasets with normal boxes. Choose the model in «Select model», here «Gemini 3.8 Flash». A section «Reference images» appears under the prompts.

Choose a Generic API model

3. Add a prompt ​

Click «Add prompt», choose the tag and click «Apply». The prompt starts as the tag's name, here «item». References are chosen by the tags of the prompts, so «Reference images» waits for a prompt. «item» is a word the model can read in more than one way: the pack is an item, and so is each biscuit in it.

Add a prompt

4. Run it without references ​

Click «Run inference». With only the word to go on, the model proposes one box around the whole pack.

Run it without references

5. Leave those proposals ​

Proposals you do not apply are dropped when you move to another image. Go to the next image and come back.

6. Let the platform suggest a reference ​

Under «Reference images», click «Add» and choose «Suggest automatically». It looks among the labeled images that show the tags of your prompts and adds one only if it shows a tag the references still lack, so with a single tag it adds one image. Under the references each prompt tag gets a mark: ✓ when a reference shows it, «no example» when none does.

Let the platform suggest a reference

7. Choose references yourself ​

Click «Add» and choose «Choose from the dataset…». It lists the labeled images that hold a prompt tag, with how many boxes of each tag they have; the suggested one is already ticked. Filter them by tag, by group or by name. Choose images labeled with care and like the ones you want labeled: the model copies how they are boxed.

Choose references yourself

8. Use the ones you ticked ​

Tick the images and click «Use 2». The references show in the panel: point at one to see it with its boxes. The cross on a reference removes it, and «Use 0», with nothing ticked, removes them all.

Use the ones you ticked

9. Run it with references ​

Click «Run inference» again. The references go with the image, already labeled, as examples of what an item is in this dataset: now the model proposes one box per biscuit. The image being labeled is never one of its own examples.

Run it with references

10. Keep the proposals ​

Check the proposals; «Confidence» hides the ones the model is less sure about. Click «Apply» to keep the ones on screen as labels.

11. Add the image on screen ​

Once an image is labeled right, «Add» → «Use the current image» adds it to the references, with the labels you see. With three references «Add» goes away: remove one to make room for another.

Add the image on screen

Good to know ​

  • Where they work. Reference images come with the «Generic API» models, in object detection datasets with normal boxes. The other models of Auto Labeling do not use them.
  • What goes with each image. Only the boxes of the prompts' tags are sent with a reference. A reference with none of them, or an image that has been deleted, shows a warning and is left out.
  • In «Auto». When «Auto» goes through the images, the same references go with each one.
  • When they help most. When the prompt can be read in more than one way, or the boxes have to follow a rule of your own (how tight, what counts as one object). With a precise word for a common object the model often finds it as well without them.
  • Cost. Every reference is sent again with each image, so it adds to what each run spends: use the fewest that show the model what you mean.

Next steps ​

Recorded on Rosepetal release 1.8.15.