mirror of
https://github.com/jomjol/AI-on-the-edge-device.git
synced 2025-12-11 05:56:57 +03:00
Added link to wiki. Added filter for CNNs: on digital selection show all files except those which contain '/ana' in theri name and vice versa for the analog selection.
This commit is contained in:
@@ -295,7 +295,7 @@ textarea {
|
|||||||
</select>
|
</select>
|
||||||
</td>
|
</td>
|
||||||
<td style="font-size: 80%;">
|
<td style="font-size: 80%;">
|
||||||
Path to CNN model file for image recognition
|
Path to CNN model file for image recognition. Check the <a href="https://github.com/jomjol/AI-on-the-edge-device/wiki/Neural-Network-Types" target="_blank">documentation</a> for details.
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
@@ -371,7 +371,7 @@ textarea {
|
|||||||
<select id="Analog_Model_value1">
|
<select id="Analog_Model_value1">
|
||||||
</select>
|
</select>
|
||||||
</td>
|
</td>
|
||||||
<td style="font-size: 80%;"> Path to CNN model file for image recognition</td>
|
<td style="font-size: 80%;"> Path to CNN model file for image recognition. Check the <a href="https://github.com/jomjol/AI-on-the-edge-device/wiki/Neural-Network-Types" target="_blank">documentation</a> for details.</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td width="20px" style="padding-left: 40px;">
|
<td width="20px" style="padding-left: 40px;">
|
||||||
@@ -1939,26 +1939,42 @@ function WriteModelFiles()
|
|||||||
{
|
{
|
||||||
list_tflite = getTFLITEList();
|
list_tflite = getTFLITEList();
|
||||||
|
|
||||||
var _index1 = document.getElementById("Digits_Model_value1");
|
var _indexDig = document.getElementById("Digits_Model_value1");
|
||||||
var _index2 = document.getElementById("Analog_Model_value1");
|
var _indexAna = document.getElementById("Analog_Model_value1");
|
||||||
while (_index1.length)
|
while (_indexDig.length)
|
||||||
_index1.remove(0);
|
_indexDig.remove(0);
|
||||||
while (_index2.length)
|
while (_indexAna.length)
|
||||||
_index2.remove(0);
|
_indexAna.remove(0);
|
||||||
|
|
||||||
for (var i = 0; i < list_tflite.length; ++i){
|
for (var i = 0; i < list_tflite.length; ++i){
|
||||||
var option1 = document.createElement("option");
|
var optionDig = document.createElement("option");
|
||||||
var option2 = document.createElement("option");
|
var optionAna = document.createElement("option");
|
||||||
option1.text = list_tflite[i];
|
|
||||||
option1.value = list_tflite[i];
|
var text = list_tflite[i].replace("/config/", "");
|
||||||
option2.text = list_tflite[i];
|
|
||||||
option2.value = list_tflite[i];
|
if (list_tflite[i].includes("/dig-")) { // Its a digital file, only show in the digital list box
|
||||||
_index1.add(option1);
|
optionDig.text = text;
|
||||||
_index2.add(option2);
|
optionDig.value = list_tflite[i];
|
||||||
|
_indexDig.add(optionDig);
|
||||||
}
|
}
|
||||||
|
else if (list_tflite[i].includes("/ana-")) { // Its a digital file, only show in the analog list box
|
||||||
|
optionAna.text = text;
|
||||||
|
optionAna.value = list_tflite[i];
|
||||||
|
_indexAna.add(optionAna);
|
||||||
|
}
|
||||||
|
else { // all other files, show in both list boxes
|
||||||
|
optionDig.text = text;
|
||||||
|
optionDig.value = list_tflite[i];
|
||||||
|
_indexDig.add(optionDig);
|
||||||
|
|
||||||
|
optionAna.text = text;
|
||||||
|
optionAna.value = list_tflite[i];
|
||||||
|
_indexAna.add(optionAna);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
WriteParameter(param, category, "Analog", "Model", false);
|
WriteParameter(param, category, "Analog", "Model", false);
|
||||||
WriteParameter(param, category, "Digits", "Model", false);
|
WriteParameter(param, category, "Digits", "Model", false);
|
||||||
}
|
}
|
||||||
|
|
||||||
function ReadParameterAll()
|
function ReadParameterAll()
|
||||||
|
|||||||
Reference in New Issue
Block a user