mirror of
https://github.com/jomjol/AI-on-the-edge-device-docs.git
synced 2025-12-07 12:07:01 +03:00
Deployed 3b0985f with MkDocs version: 1.4.2
This commit is contained in:
@@ -94,6 +94,10 @@
|
||||
</li>
|
||||
<li class="toctree-l1 current"><a class="reference internal current" href="./">Learn a model with your own images</a>
|
||||
<ul class="current">
|
||||
<li class="toctree-l2"><a class="reference internal" href="#before-you-start">Before you start</a>
|
||||
</li>
|
||||
<li class="toctree-l2"><a class="reference internal" href="#collecting-images">Collecting images</a>
|
||||
</li>
|
||||
<li class="toctree-l2"><a class="reference internal" href="#collecting-images-for-dig-class100dig-contana-class100">Collecting images for dig-class100/dig-cont/ana-class100</a>
|
||||
</li>
|
||||
<li class="toctree-l2"><a class="reference internal" href="#train-the-model">Train the model</a>
|
||||
@@ -190,13 +194,17 @@
|
||||
<div class="section" itemprop="articleBody">
|
||||
|
||||
<h1 id="learn-a-model-with-your-own-images">Learn a model with your own images</h1>
|
||||
<p>If your device has new, different digits and the existing models don't recognize them well, you can collect your own images and train the model.</p>
|
||||
<p>But before you do this, please check if your type really is not contained yet in the training data, see <a href="https://jomjol.github.io/neural-network-digital-counter-readout">digits</a> resp. <a href="https://jomjol.github.io/neural-network-analog-needle-readout/">pointers</a> for an overview of images used for the training</p>
|
||||
<p>If your device has new, different digits and the existing models don't recognize them well, you can collect your own images and train the model. Of course, this also applies if you have a model that is already known, but the neural models do not produce good results.</p>
|
||||
<p>But before you do this, you please check if your type really is not contained yet in the training data, see <a href="https://jomjol.github.io/neural-network-digital-counter-readout">digits</a> resp. <a href="https://jomjol.github.io/neural-network-analog-needle-readout/">pointers</a> for an overview of images used for the training. But we also like to take pictures of already known devices.</p>
|
||||
<h2 id="before-you-start">Before you start</h2>
|
||||
<p>Poor recognition is often caused by blurred images, low contrast or incorrect setting of the ROIs. Therefore, check these possibilities first, as additional training will bring little improvement here.</p>
|
||||
<p>You must not train the models by yourself (see section <a href="#share-your-images">Share your images</a>). In most cases we will integrate you images in the training dataset of the models. Only if we fear a degradation of the models or you need a different behaviour, we will not include the data in the standard models.</p>
|
||||
<h2 id="collecting-images">Collecting images</h2>
|
||||
<p>The neural network is trained on base of a set of images, that have been collected over time. If your digits are included or at least very similar to included images, the chance is very high that the neural network is working fine for you as well.</p>
|
||||
<p>The neural network configuration is stored in the TensorFlow Lite format as <code>filename.tfl</code> or <code>filename.tflite</code> in the <code>/config</code> directory. It can be updated by uploading the new file and activating it on the configuration page or in the config file <code>/config/config.ini</code>.</p>
|
||||
<p>In order to incorporate new digits a training set of images is required. The training images needs to be collected in the final setup with the help of the <code>Digits</code> or <code>Analog</code> log settings (not to be confused with the <code>Data</code> or <code>Debug</code> log). Enable the logging of the images on the configuration page or in the config file <code>/config/config.ini</code>:</p>
|
||||
<p><img alt="" src="../img/enable_log_image.jpg" /></p>
|
||||
<p>Now wait, until you have an image of each digit of every type on the SD card. Ideally remove the SD card from the camera and search for two to three images of each digit (<strong>not more! :-)</strong>). The format can be jpg.</p>
|
||||
<p>Now wait, until you have an image of each digit of every type on the SD card. Ideally remove the SD card from the camera and search for two to three images of each digit (<strong>not more! :-)</strong>). The format can be jpg. But don't panic, the collector programmes will sort out duplicate images for you.</p>
|
||||
<h2 id="collecting-images-for-dig-class100dig-contana-class100">Collecting images for dig-class100/dig-cont/ana-class100</h2>
|
||||
<p><a href="https://github.com/haverland/collectmeterdigits">Collectmeterdigits</a> and <a href="https://github.com/haverland/collectmeteranalog">collectmeteranalog</a> helps you to collect the images easily. Read the project readme for detailed instructions.</p>
|
||||
<h2 id="train-the-model">Train the model</h2>
|
||||
|
||||
File diff suppressed because one or more lines are too long
BIN
sitemap.xml.gz
BIN
sitemap.xml.gz
Binary file not shown.
Reference in New Issue
Block a user