Label Data
To label data in a dataset, go to the DATA tab in the Viam app.
On the Images subtab, you can filter available images, using the Filtering menu and select the attributes that match where, how, and when the data was collected.
Info
Filtered datasets are views and not materialized. That means the data you are viewing may change as you label and train on the dataset. If the underlying data matching the filter changes because data is deleted or more data is added, the dataset will also change.
You can label your data with:
- Bounding boxes, which you can use to train object detection models.
- Image tags, which you can use to image classification models.
Bounding boxes
You can create one or more bounding boxes for objects in each image.
If you annotate an entire dataset, you can use these bounding boxes to create object detection models.
For example, if you would like to create a model that detects a dog in an image, add bounding boxes around the dog in each of your images and add or select the label dog
.
To add a bounding box, click on the image you want to add the bounding box to. More information about the image will open up to the right side. Select the Bounding Box option. Choose an existing label or create a new label. Click on the image where you would like to add the bounding box and drag to where the bounding box should end.
If you want to expand the image, click on the expand side menu arrow in the corner of the image:
Repeat this with all images in your dataset. To see all the images that have bounding boxes, you can filter your dataset by selecting the label from the Bounding box labels dropdown in the Filtering menu.
To delete a bounding box, click the cross next to the corresponding label.
Image Tags
You can use tags to create classification models for images.
For example, if you would like to create a model that identifies an image of a star in a set of images, tag each image containing a star with a star
tag.
The filter also needs to include images without the star tag or with another tag like notstar
.
If you add a notstar
tag, you can filter the data in your dataset by selecting star
and notstar
from the Tags dropdown in the Filtering menu.
Alternatively you can use date ranges to filter for relevant data.
To tag an image, click on the image. More information about the image will open up to the right side. Select the Image Tags option.
If you want to expand the image, click on the expand side menu arrow in the corner of the image.
Repeat this with all images in your dataset.
To delete a tag, click the cross next to the corresponding label.
Next Steps
Have questions, or want to meet other people working on robots? Join our Community Discord.
Was this page helpful?
Glad to hear it! If you have any other feedback please let us know:
We're sorry about that. To help us improve, please tell us what we can do better:
Thank you!