Image Dataset Augmenter and Splitter

Flip, turn, rotate, crop, colour jitter, blur and add noise to labelled image sets with their YOLO or COCO bounding boxes moved exactly, then split into train, validation and test folders and save a ready-to-train ZIP.

Runs in your browser. Your files never leave your device. See how to check

…

How to do it

  1. 1
    Add the files

    Select the images with their label files and class names, or a COCO JSON.

  2. 2
    Check the classes

    Review box counts per class and rename classes if needed.

  3. 3
    Set the split

    Choose train and validation shares and a seed; test gets the rest.

  4. 4
    Choose augmentations

    Pick a preset or set flips, turns, rotation, crop, colour, blur and noise.

  5. 5
    Preview

    Show a random augmented copy of any image with its boxes drawn.

  6. 6
    Build the ZIP

    Choose YOLO or COCO and the image size, then build and save the dataset.

About this tool

Object detection models learn from labelled photos, and small datasets of a few hundred pictures are the norm for a shop counting products, a farmer spotting weeds or a student project. Two chores come before training: making more variety from the photos you have, and splitting them into training, validation and test sets without mixing copies of the same photo across sets. Cloud labelling platforms do both after you upload your images. This tool does them in your browser, so private photos stay on your computer. Select the images together with their YOLO label files and a classes.txt, obj.names or data.yaml, or with a COCO instances JSON. The page matches labels to images by file name, counts the boxes per class, turns YOLO segmentation polygons into boxes and lists images without labels, which are kept as background examples. Each augmented copy gets its own random plan from a seed: a mirror flip, an upside-down flip, a quarter turn, a small rotation, a crop that keeps a share of the picture you choose, changes of brightness, contrast, saturation and hue, a blur and grain-like noise. The boxes go through exactly the same steps. Each box corner is mapped through the same transform as the pixels, the box is clipped to the new picture, and boxes that keep less than the visibility share you set are dropped.

Splitting without leakage

The split works on source photos, not on copies: with 70 percent train and 20 percent validation, 100 photos become 70, 20 and 10, shuffled with your seed. By default only the training photos are augmented, and every copy of a photo stays in the same split as the original, so the validation score is not inflated by near-duplicates. The same seed gives the same split and the same copies every time.

Output

The YOLO ZIP follows the Ultralytics layout with images and labels folders for train, val and test and a data.yaml with the class names, ready for training commands. The COCO ZIP has an images folder per split and an instances JSON per split. A README records the counts, the seed and the settings. Images can be resized to 416, 640, 1024 or 1280 pixels on the longer side, and are saved as JPEG at the quality you set.

Limits

Rotation turns a box into the box around its rotated corners, which is a little larger than the object, so keep rotation small when tight boxes matter. Masks, keypoints and oriented boxes are not augmented. Mosaic and mix-up, which training libraries do on the fly, are not included. Large sets of thousands of high-resolution photos take a while and need memory; resize them first on older phones.

Worked example

A student has 120 photos of 4 kinds of fruit labelled in YOLO format, with 438 boxes. With a 70, 20 and 10 split and seed 42, 84 photos go to train, 24 to validation and 12 to test. With 3 augmented copies per training photo and the originals kept, the train folder holds 84 + 252 = 336 images, while validation and test keep their 24 and 12 originals untouched. The training photos hold 306 boxes, so the copies carry 918; with rotation up to 10 degrees and crops keeping at least 80 percent, 17 of them are dropped for falling below the 35 percent visibility share. Resized to 640 pixels, the ZIP is about 40 MB.

Quick facts

Frequently asked questions

Which label formats can I use?

YOLO text files with one box per line and normalised centre, width and height, with classes.txt, obj.names or data.yaml for the names, or a COCO instances JSON. YOLO polygons are turned into boxes.

Why augment only the training set?

Validation and test images measure how the model does on photos it has not seen. Copies of a training photo in the validation set make the score look better than it really is.

What happens to boxes that are cropped away?

Each box is clipped to the new picture. If less than the visibility share you set remains, 35 percent by default, the box is dropped. The README counts how many boxes were dropped.

Can I get the same dataset again?

Yes. The split and every augmented copy come from the seed. Keep the seed and the settings, which are saved in the README, and the same files give the same dataset.

Which augmentations suit my images?

Mirror flips and colour changes suit most photos. Quarter turns and upside-down flips suit aerial, microscope and top-down images. Text and documents should not be flipped; use the documents preset.

Are my images uploaded?

No. Images are decoded, transformed and packed into the ZIP in your browser. Nothing is sent to a server.

Guides for this tool

Completely freeNo cost, no sign-up
Files stay privateEverything runs in your browser
Easy in your languageAvailable in many languages