Train on synthetic.Deploy on real.

99.15 % accuracy — zero real labels

Metallic inspection part under chamber lighting
MIT License · JIC · Open Source

The data gap

Real defects are rare

In quality manufacturing, defects occur in single-digit percentages. To train an AI model to detect a fingerprint on a metal part, you need hundreds to thousands of defective samples. Producing them on purpose is expensive and does not scale.

Machined metal part, clean surface
clean
The same part with fingerprint residue on the upper face
defected

The product may not exist yet

What if you want the inspection system ready before production even starts? Before the first batch? For a part that exists only as a CAD model?

  1. 01CAD geometry
  2. 02Material assignment
  3. 03PBR textures
  4. 04Physical lighting
  5. 05Rendered frame
The part as a physically rendered frame — the same geometry Blender built from the CAD model

Manual annotation is the bottleneck

Every image needs a bounding box, a label, a quality check. That is hours of manual work. Synth.Eye generates the data and the annotations automatically.

6,000images
0manual labels
< 1 hrgeneration time

First principles: physical simulation

We virtualize the entire inspection chamber — camera, lens, lighting, materials. Physical rendering in Blender produces images indistinguishable from reality.
  1. Virtualization

    The inspection chamber exists twice — once on the bench, once in Blender. Same frame, same camera mount, same lighting geometry.

    Photograph of the physical inspection stand: aluminium frame, camera on a cross member, the part lying on the base plate
    Real standPhysical vision rig · JIC lab
    The same inspection stand rebuilt in Blender: identical frame, identical camera mount, the part in the same position on the plate
    Blender sceneDigital twin · Cycles
    camera
    Basler a2A1920-51gcPRO
    lens
    16 mm · f/4.0
    lighting
    diffuse dome + directional
    renderer
    Cycles · 512 samples
  2. Geometry → material

    One part, split down the middle: the left portion is untextured geometry, the right portion is the same surface with PBR textures, brushed aluminium with a fingerprint
    geometrypbr material

    The mesh carries no appearance. PBR textures turn the same silhouette into a surface a camera can be fooled by — and the same mesh takes more than one surface.

    • albedo
    • roughness
    • normal
    • anisotropy
    The part with a brushed aluminium surface and greasy fingerprint contamination
    brushed aluminiumfront side
    The same part geometry with a dark oxidized surface
    oxidized steelback side
  3. Scale

    One scene, six thousand frames. Pose, rotation and light angle are randomized per frame — and every bounding box is written by the generator, not by a person.

    1
    source scene
    6,000
    frames
    2
    part sides
    0
    manual labels
    Front side — randomized pose, rotation and light angle. The blue box is the ground truth the generator wrote with the frame.
    Back side — same scene, same run, different material. Orange box, same origin.
    Procedural fingerprint defects, magenta box — generated on the surface and annotated in the same pass.
  4. Verification

    1. Machined metal part with fingerprint contamination on the upper face, seen from the inspection camera angle

      Real captureBasler a2A1920-51gcPRO · 16 mm · f/4.0

    2. Machined metal part with fingerprint contamination on the lower face, seen from the inspection camera angle

      Blender renderCycles · 512 spp · procedural fingerprint

    Left: inspection camera. Right: Blender. Same lens, same lighting, same material — and the detector assigns them the same class.

Scroll-driven transformation from a physically rendered part to a GAN generated part. The image disintegrates into a particle field and reassembles into the generated output.

Physically rendered inspection part
Blender · physical render
GAN generated inspection part
GAN · generated
transform 000%

Statistical learning: generative networks

01 · first principles

“I know exactly what reality looks like, and I will reconstruct it from scratch.”

Blender

02 · statistical learning

“Show me 130 examples and I will learn what they have in common — and generate thousands more.”

GAN
  1. Three generators

    Not one model that draws everything — three, each holding a single distribution. Two of them are the part; the third is the defect, and only it needs compositing.

    front.pkl and fingerprint.pkl feed a compositor that runs eleven operations including pressure simulation; its output joins the YOLO training set as image plus label file. back.pkl bypasses the compositor and enters the training set as generated.

    front.pkl

    lane a · carrier

    StyleGAN2-ADA · 256 × 256

    Brushed front side — counterbored holes, machining swirl. Carrier for the fingerprint composite.Front-side samples — four of twenty.

    back.pkl

    lane b · direct

    StyleGAN2-ADA · 256 × 256

    Oxidized back side — plain holes, no counterbore. Trains the classifier as generated, no compositing pass.Back-side samples — four of forty.

    fingerprint.pkl

    lane a · overlay

    StyleGAN2-ADA · 128 × 128

    Fingerprint residue, generated on its own and pressed onto the front side with pressure simulation and blend-mode variation.Front side + composited residue — four of twenty.

    twelve of the eighty samples the navigator below walks through

  2. Latent space

    The eighty samples are not the model — they are eighty points in a space the model holds continuously. Every position between them is a part that was never rendered and never photographed.

    GAN generated variation of the inspected part

    latent_field · 10 × 8

    surface
    orientation
    vector
    0.444 / 0.429
    sample
    4,3
    blend
    single sample
    seed
    0x6DC7C6

    80 real StyleGAN2-ADA outputs projected onto a 2D lattice — orientation across, surface state down. Every position between nodes is a blend that exists in no source frame.

    dragarrowshome = reset

  3. Compositing

    Lane A, opened up: five layers, and the label falls out of the stack instead of being drawn onto it.

    One compositor run, seed 0050, taken apart into five layers: camera background, raw fingerprint.pkl output, the shaped print placed at its paste rectangle, the finished composite, and — clear of the stack above them — the YOLO label file derived from the two plates below it. Drag or focus a layer to pull it out of the stack; dragging the composite or the placed print moves the matching bounding box and rewrites its coordinates.

    composite.txt
    0 0.474609 0.500000 0.746094 1.0000002 0.710938 0.841797 0.273438 0.253906

    Class 0 is the alpha silhouette of the composited part. Class 2 is the rectangle the print was pasted into. Neither was measured off the picture — pull a plate sideways and watch its row rewrite itself.

    layers, top of stack down

  4. Trade-off

    Neither approach replaced the other. They fail in opposite directions — and the platform ships both.

    Speed
    ~seconds / frame
    ~milliseconds / frame
    Input
    CAD + physical setup
    ~130 real photographs
    Control
    explicit — scene parameters
    implicit — data distribution
    Output
    deterministic
    stochastic

See what the operator sees

This is a simulation of the real Synth.Eye inspection interface. Connect the camera, then capture, analyze and measure a part.

Camera View

CAMERA DISCONNECTED

Basler a2A1920-51gcPRO · 1920×1200

Press CONNECT to initialize the camera stream.

System Logger

Total Logs: 0OK: 0NOK: 0
CameraBasler a2A1920-51gcPRO
Resolution1920×1200
Last Update—
SystemSynth.Eye AI

Productivity Graph

OKNOK

The total number of images analyzed is 0, of which 0 were found to be OK and 0 were found to be NOK.

github.com/rparak/Synth_Eye (opens in new tab)

From pixel to millimeter

Detection says what is on the part. Metrology says how big it is — every part measured, every tolerance verified.

Front side of the machined part, photographed in the inspection chamber
41.0262.0825.20⌀ 6.10

method: hough_circlesrotation: 89.3°scale: 9.44 px/mm

result: PASS — all dimensions within ±3.00 mm

Back side of the machined part, photographed in the inspection chamber
40.7861.6525.23⌀ 6.09

method: contour_analysisrotation: 68.2°scale: 9.61 px/mm

result: PASS — all dimensions within ±3.00 mm

Trained on synthetic. Proven on real.

99
object classificationon real images
95
defect detectionon real images
6,000
synthetic imageszero manual labels

front side

Synthetic training sample — front side of the part, generated by the GAN pipeline
Synthetic training sample, front side. Ground-truth label, no prediction: LABELCls_Obj_Front_Side
Real production image — front side of the part, classified OK
Real production image, front side. Model prediction: OKCls_Obj_Front_Side96.02%

front + fingerprint

Synthetic training sample — front side with a composited fingerprint residue
Synthetic training sample, front + fingerprint. Ground-truth label, no prediction: LABELCls_Defect_Fingerprint
Real production image — front side with fingerprint contamination, classified NOK
Real production image, front + fingerprint. Model prediction: NOKCls_Defect_Fingerprint93.74%

back side

Synthetic training sample — back side of the part, generated by the GAN pipeline
Synthetic training sample, back side. Ground-truth label, no prediction: LABELCls_Obj_Back_Side
Real production image — back side of the part, classified OK
Real production image, back side. Model prediction: OKCls_Obj_Back_Side94.31%

Trained entirely on synthetic data. Tested on real production images from the factory floor. No real images were labeled during training.