Skip to content

Annotate Dataset

Now that you have imported videos or images into EdgeFirst Studio, let's take a look at how to annotate the dataset using the Automatic Ground Truth Generation (AGTG) features in EdgeFirst Studio.

  1. On the dataset gallery, click on any sequence card to annotate

    Imported Videos
    Imported Videos

  2. Add the list of labels you plan to annotate for your dataset. In this example, the labels will be classified as "screw,washer,nuts,misc"

    Add Labels
    Add Labels

  3. Once the labels have been added, start the "AI Segment Tool" and click on "Launch AGTG Server" as shown

    Start AGTG Server
    Start AGTG Server

    Allow ~5 mins. for the AGTG server to start. If more than 5 mins. has exceeded, please refresh the page and try again.

    AGTG Initialization
    AGTG Initialization

  4. Start by adding bounding box prompts to each object in the frame as shown. Once the prompts have been added, click on propagate to start the annotations for the forward frames

    AGTG Prompts
    AGTG Prompts

    You should see the annotations propagate throughout the frames.

    AGTG Propagation
    AGTG Propagation

  5. Once the propagation completes, click on "Save AIGT Annotations" at the top

    Save AGTG Annotations
    Save AGTG Annotations

  6. If you find that all the objects appear in the last frame, you can annotate the last frame instead and select "Reverse Propagation" to propagate backwards

    Reverse Propagation
    Reverse Propagation

  7. Once you have annotated the selected sequence, click "Back" to go back to the list of sequences and select a new sequence to annotate. Then proceed with the same steps above to annotate the dataset

    Back to Gallery
    Back to Gallery

Annotation Tutorial

For an in-depth tutorial on annotating datasets, please see our Dataset Tutorials.

Split Dataset

Now that you have annotated your dataset, let's split the dataset into train and validation groups which will be needed for model training.

See the dataset's card by clicking on the "Dataset" link as shown.

Back to Dataset
Back to Dataset

The dataset card will appear like the following below.

Dataset Card
Dataset Card

Partitioning the dataset is crucial in reserving dataset portions used for training and portions used for validation to assess the performance of the model. By default in EdgeFirst Studio, the partitions are 80% towards training and 20% towards validation. This operation randomly shuffles the data prior to assigning them to the specified groups.

Warning

The dataset needs to be re-split whenever new sample images or frames are added to the dataset. Newly added samples are not automatically added to any group that already exists.

Consider the following dataset without any groups reserved.

No Groups
No Groups

To create the dataset groups, click on the "+" button in the "Groups" field.

Add Groups
Add Groups

This will open a new dialog to specify the percentages of the partition belonging to the "Training" group or "Validation" group. By default 80% of the samples will be dedicated to training and the remaining 20% will be dedicated towards the validation samples.

Groups Field
Groups Field

Once the groups are specified, click "Split" to create the groups. This will automatically divide the samples in the dataset based on the percentages of each group specified.

Dataset Groups
Dataset Groups

Tag Dataset

Let's give a your dataset a tag to finalize the changes to your dataset and start using it for training.

Before a dataset can be used for training, it must be tagged to preserve its current state. Assign a version tag to the dataset.

Click on the dataset options at the top right of the dataset card (three vertical dots). Then click the "History" button.

Tag Dataset Options
Tag Dataset Options

Add a new tagged version of the dataset by clicking "Tag This Version" button as shown.

Tag Dataset Button
Tag Dataset Button

Specify the tag version and tag description. Click "Create Tag" to tag the dataset.

Tag Dataset Options
Tag Dataset Options

The new dataset tag will appear under "Version History" of this page. You can go back to the dataset card by clicking the "Back to Datasets" button.

Back to Datasets Button
Back to Datasets Button

Next Steps

Now that you have annotated your dataset, let's look at how you can train a detection model using this dataset.