Skip to content

Commit

Permalink
DOCS-2547: Make expander with tips for train deploy ml guide (#3695)
Browse files Browse the repository at this point in the history
  • Loading branch information
sguequierre authored Nov 21, 2024
1 parent 6e09795 commit fea0495
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion docs/how-tos/train-deploy-ml.md
Original file line number Diff line number Diff line change
Expand Up @@ -299,11 +299,27 @@ If no data appears after the sync interval, check the **LOGS** tab for errors.
Your camera now saves images at the configured time interval.
When training machine learning models, it is important to supply a variety of images.
The dataset you create should represent the possible range of visual input.
This may include capturing images of different angles, different configurations of objects and different lighting conditions
This may include capturing images of different angles, different configurations of objects and different lighting conditions.
The more varied the provided dataset, the more accurate the resulting model becomes.

Capture at least 10 images of anything you want your machine to recognize.

{{< expand "For more tips and tricks on improving model accuracy, click here." >}}

- **More data means better models:** Incorporate as much data as you practically can to improve your model’s overall performance.
- **Include counterexamples:** 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 it what the object is not.
- **Avoid class imbalance:** 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.
- **Match your training images to your intended use case:** 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 both daylight and nighttime conditions.
- **Vary your angles and distances:** Include image examples from every angle and distance that the model will see in normal use.
- **Ensure labelling accuracy:** Make sure the labels or bounding box annotations you give are accurate.

{{< /expand >}}

{{% /tablestep %}}
{{% tablestep %}}
**6. Label your images**
Expand Down

0 comments on commit fea0495

Please sign in to comment.