Cookie Consent by PrivacyPolicies.com
Quality Automation with AI and Relimetrics

Knowledge Hub

Explore & Learn ReliVision with Proven Use Cases

How to Generate Synthetic Defect Data

When real defect examples are too rare to train on, ReliVision can generate them. You import your own non-defective images, mark where a defect should appear, choose a defect type from the GenAI library, and the platform renders a synthetic dataset on your own material — all inside ReliUI, with no external tooling and no generative model of your own to host.

  • 5 steps
  • No code
  • Sample defects provided
Step 1 of 5 · Data Import

Import your data

Synthetic generation starts from your own non-defective images. ReliVision uses them as the clean base that defects are rendered onto, which is what makes the output match your real material, lighting and camera rather than looking like a stock texture.

What to do

  1. In ReliUI, open the Gallery.
  2. Click Import Data, then select the GenAI tab.
  3. Import your non-defective images.
  4. The image folder appears in the Gallery. Double-click it to open the images.
The ReliVision Gallery with the Import Data button, and the import dialog listing the available import options.
Import runs from the Gallery — the GenAI tab is what routes the images into the synthetic-data workflow.
Step 2 of 5 · Image Annotation

Annotate the target areas

You mark the regions where synthetic defects should be placed. This is what keeps generated defects in plausible positions — on the weld, on the surface, inside the part boundary — rather than scattered anywhere in the frame.

What to do

  1. Open an image from the imported folder.
  2. Use the rectangle tool to annotate the areas where you want defects added.
  3. If it helps, annotate non-defective areas as well — this is supported and tells the generator what clean looks like on the same part.
  4. Repeat across the images you want to use as the base set.
The annotation view with the rectangle tool active and a region marked on the part surface.
Rectangles mark where defects may be rendered. Annotating clean areas too is optional but supported.
Step 3 of 5 · Defect Selection

Select a defect from the library

The GenAI Defect Library holds the defect types the platform can render — scratches, cracks, stains, missing material and similar. You pick the defect and the base dataset it should be applied to, and those two choices define the run.

What to do

  1. Once all annotations are complete, go to the GenAI page.
  2. Choose a defect from the GenAI Defect Library.
  3. Select the base dataset to start the process.
The GenAI defect library grid with a defect selected and the base dataset picker open.
Sample defects ship with the platform, so you can run a first generation before building your own defect catalogue.
Step 4 of 5 · Set Parameters

Set the generation parameters

The parameters decide how large the output dataset is and how the defect is scaled onto the base images.

Name the dataset and set its size

  1. Enter a name for the new generated dataset.
  2. Set the number of output images.
  3. Open Advanced Settings if you need to adjust defect scaling — how large the rendered defect appears relative to the part.
The Set Parameters dialog with the dataset name and output count, and the Dataset Generated confirmation.
Generation runs on the GPU server; the confirmation dialog tells you when the dataset is ready to review.

Synchronise and generate

  1. Synchronise the data.
  2. Click Generate.
  3. Wait for the confirmation that the dataset has been generated. The new dataset then appears in the Gallery.
The Set Parameters dialog with the dataset name and output count, and the Dataset Generated confirmation.
Step 5 of 5 · Synthetic Data

Review the synthetic dataset

The generated dataset lands in the Gallery alongside your imported folders. Reviewing it is not optional oversight — these images become training data, so anything unconvincing here becomes a weakness in every model trained on the set.

What to do

  1. Open the Gallery. The generated dataset is displayed alongside your source folders.
  2. Double-click the folder to open it.
  3. Review the synthetic defects in the annotation view.

What to look for

  • Does the defect sit where a real one would occur on that part?
  • Is it the right size relative to the part, or does the scaling need adjusting?
  • Does it blend with the surrounding texture, lighting and grain direction?
  • Is there enough variety across the set, or does the same defect repeat almost identically?
The Gallery showing the generated dataset, with a synthetic defect visible in the annotation view.
Reviewing side by side with a real defect is the fastest way to judge whether the scaling and blending are right.

    Generate synthetic data on your own images

    Download ReliVision to work through this guide on your own parts, or explore workflows, training and deployment best practices in the Knowledge Hub.

    Download ReliVision