Previous
Capture
Use the interface on the DATA page to annotate your images. Always follow best practices when you label your images:
Incorporate as much data as you practically can to improve your model’s overall performance.
Include images with and without the object you’re looking to classify. This helps the model distinguish the target object from the background and reduces the chances of false positives by teaching the model what the object is not.
Don’t train excessively on one specific type or class, make sure each category has a roughly equal number of images. For instance, if you’re training a dog detector, include images of various dog breeds to avoid bias towards one breed. An imbalanced dataset can lead the model to favor one class over others, reducing its overall accuracy.
Use images that reflect the quality and conditions of your production environment. For example, if you plan to use a low-quality camera in production, train with low-quality images. Similarly, if your model will run all day, capture images in daylight, nighttime, dusk, and dawn conditions.
Include image examples from every angle and distance that you expect the model to handle.
Viam enables you to annotate images for the following machine learning methods:
Classification determines a descriptive tag or set of tags for an image. For example, classification could help you identify:
full
, empty
, or average
good
or bad
pepperoni
, sausage
and pepper
, or pineapple
and ham
and mushroom
Viam supports single and multiple label classification. To create a training set for classification, annotate tags to describe your images.
To tag an image:
Click on an image, then click the + next to the Tags option.
Add one or more tags to your image.
Repeat these steps for all images in the dataset.
Object detection identifies and determines the location of certain objects in an image. For example, object detection could help you identify:
pizza
objects appear on a counterbicycle
and pedestrian
objects on a greenwayplant
objects are popular with deer
in your gardenTo create a training set for object detection, annotate bounding boxes to teach your model to identify objects that you want to detect in future images.
To label an object with a bounding box:
Click on an image, then click the Annotate button in right side menu.
Choose an existing label or create a new label.
Holding the command key (on macOS), or the control key (on Linux and Windows), click and drag on the image to create the bounding box:
Once created, you can move, resize, or delete the bounding box.
Repeat these steps for all images in the dataset.
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!