πŸ–ΌοΈAugment Dataset

Dataset augmentation creates new training images by applying controlled transformations to your existing labeled images while keeping bounding boxes perfectly aligned.

Used correctly, augmentation helps your model generalize (perform well on new images). Used incorrectly, it can make training worse by teaching the model unrealistic patterns.


βš–οΈ What Augmentation Is (and Is Not)

Augmentation Examples

Augmentation IS...

Augmentation IS NOT...

A way to simulate lighting, rotation, or noise.

A substitute for missing camera angles or products.

A tool to improve robustness in small datasets.

A fix for incorrect or "sloppy" initial labels.

A method to reduce overfitting.

A guarantee of better results (over-doing it hurts).


Strategic Usage

When Augmentation Is Helpful
  • Small Datasets: You have few images per class.

  • Environmental Variation: You expect shifts in lighting (day/night), glare, or motion blur.

  • Overfitting: Training accuracy is high, but real-world performance is low.

  • Rare Classes: Some objects appear infrequently in your real data.

When Augmentation Is Unnecessary (or Risky)
  • Diverse Real Data: You already have thousands of varied, real-world images.

  • Subtle Features: Your inspection depends on tiny scratches or textures that blur/noise might destroy.

  • Stable Environments: The lighting, camera, and product positions never change. For example, a fixed position object does not need rotation augmentation.


πŸ› οΈ How the Augmentation Window Works

In the Image Annotation Window, navigate to Tools β†’ Augment Dataset.

Augmentation Selector window

Interface Breakdown

Section
Function

Quick Presets

One-click configurations to apply sensible starting defaults. Presets

Quick Toggles

Enable/disable entire groups (e.g., Color, Noise) quickly. Toggles

Detailed Options

Fine-tune intensity for Brightness, Contrast, Blur, Noise, and Perspective tweaks.


A Safe, Practical Workflow

  1. Clean Baseline: Finish manual labeling first (or at least a clean subset).

  2. Backup: Duplicate your dataset folder.

  3. Start Small: Use a preset or minimal manual settings.

  4. Visual Audit: Open the generated folder and check:

    • Are the bounding boxes still centered on the objects?

    • Do augmented images still look realistic?

  5. Train & Compare: Compare the results of a model trained with and without augmentation.


❓ Troubleshooting

πŸ“‰ "My model got worse after augmentation"

This often means the augmentation didn't match reality.

  • Try: Reduce augmentation intensity.

  • Try: Disable transforms that create unrealistic images (e.g., don't use 180Β° rotation if parts are always upright).

πŸ–ΌοΈ "Boxes look wrong on augmented images"
  • Try: Reduce geometric transforms (rotation/perspective).

  • Try: Validate that your labels were tight and correct before augmentation.

πŸ“‚ "It generated too many files"
  • Try: Disable most transforms and keep only the ones you really need.

  • Try: Use augmentation on a smaller subset of images.

Last updated

Was this helpful?