Synthetic data

Synthetic data is training data produced by software, such as rendered 3D scenes, procedural textures or generative models, instead of being captured from the real world. Its labels come from the generator, so they are exact and free. In Supervisely, generated datasets import like any other, for example as COCO or PNG masks.

Tasks and trainingAlso called synthetic training data, simulated data

Why teams generate data

  • Rare or dangerous events: defects that appear once in thousands of parts, accidents, extreme weather.
  • Labels that are hard to draw by hand: pixel-exact masks, depth, or the 3D pose of every object.
  • Privacy: scenes with no real people or license plates in them.
  • Control: the same scene with one factor changed, such as lighting or camera height.

The domain gap

Rendered images differ from camera images in noise, blur, texture and lighting, and a model can learn those differences instead of the objects. Common answers are randomizing textures, lighting and backgrounds so the real world looks like one more variation; mixing synthetic images with a smaller set of real ones; and domain adaptation methods that align the two during training.

Rules for using it safely

  1. Keep validation and test sets made of real, hand-labeled data only.
  2. Compare a model trained on real data alone with one trained on real plus synthetic, on the same real validation set.
  3. Check per class: synthetic data often helps the rare classes it was made for and does nothing for the rest.

Synthetic data and Supervisely

Generated images arrive with their labels in standard files, so they import like any other dataset, for example as COCO or PNG masks, and can be checked in the labeling tools before training. The blog covers the topic in depth: a synthetic crack segmentation dataset, lessons from training a segmentation model on synthetic data and domain adaptation with HRDA. Data augmentation is the lighter relative: it varies real images instead of making new ones.

Frequently asked questions.

What is synthetic data in computer vision?

Images and labels generated by software, such as 3D rendering, simulation or generative models, instead of photographed and labeled by hand. The labels come for free and exact, and rare cases can be produced on demand.

Can a model be trained on synthetic data only?

Sometimes, but synthetic images differ from real ones, so a model trained only on them often loses accuracy on real data. Mixing in some real images or using domain adaptation, as HRDA does, narrows that gap.