mirror of
https://github.com/jomjol/AI-on-the-edge-device.git
synced 2025-12-08 20:46:52 +03:00
Rolling 20220827
This commit is contained in:
@@ -40,6 +40,11 @@ In other cases you can contact the developer via email: <img src="https://raw.gi
|
|||||||
|
|
||||||
------
|
------
|
||||||
|
|
||||||
|
##### Rolling (2022-08-27)
|
||||||
|
|
||||||
|
- Updated consistency algorithm & test cases
|
||||||
|
- Improved Reboot Dialog (thanks to @**[caco3](https://github.com/caco3)**)
|
||||||
|
|
||||||
##### Rolling (2022-08-26)
|
##### Rolling (2022-08-26)
|
||||||
|
|
||||||
- Updated consistency algorithm
|
- Updated consistency algorithm
|
||||||
|
|||||||
@@ -209,7 +209,7 @@ int ClassFlowCNNGeneral::ZeigerEvalHybridNeu(float zahl, float zahl_vorgaenger,
|
|||||||
if ((zahl_vorgaenger >= DigitalUebergangsbereichVorgaenger ) && (zahl_vorgaenger <= (10.0 - DigitalUebergangsbereichVorgaenger)))
|
if ((zahl_vorgaenger >= DigitalUebergangsbereichVorgaenger ) && (zahl_vorgaenger <= (10.0 - DigitalUebergangsbereichVorgaenger)))
|
||||||
{
|
{
|
||||||
// kein Ziffernwechsel, da Vorgänger weit genug weg ist (0+/-DigitalUebergangsbereichVorgaenger) --> zahl wird gerundet
|
// kein Ziffernwechsel, da Vorgänger weit genug weg ist (0+/-DigitalUebergangsbereichVorgaenger) --> zahl wird gerundet
|
||||||
if ((ergebnis_nachkomma <= 2) || (ergebnis_nachkomma >= 8)) // Band um die Ziffer --> Runden, da Ziffer im Rahmen Ungenauigkeit erreicht
|
if ((ergebnis_nachkomma <= DigitalBand) || (ergebnis_nachkomma >= (10-DigitalBand))) // Band um die Ziffer --> Runden, da Ziffer im Rahmen Ungenauigkeit erreicht
|
||||||
result = ((int) round(zahl) + 10) % 10;
|
result = ((int) round(zahl) + 10) % 10;
|
||||||
else
|
else
|
||||||
result = ((int) trunc(zahl) + 10) % 10;
|
result = ((int) trunc(zahl) + 10) % 10;
|
||||||
|
|||||||
@@ -27,9 +27,10 @@ protected:
|
|||||||
float AnalogFehler = 3.0;
|
float AnalogFehler = 3.0;
|
||||||
float AnalogToDigtalFehler = 0.8;
|
float AnalogToDigtalFehler = 0.8;
|
||||||
float DigitalUnschaerfe = 0.2;
|
float DigitalUnschaerfe = 0.2;
|
||||||
|
int DigitalBand = 3;
|
||||||
float DigitalAnalogerVorgaengerUebergangsbereich = 2;
|
float DigitalAnalogerVorgaengerUebergangsbereich = 2;
|
||||||
float DigitalUebergangsbereichVorgaengerAnalogToDigit = 2;
|
float DigitalUebergangsbereichVorgaengerAnalogToDigit = 2;
|
||||||
float DigitalUebergangsbereichVorgaenger = 0.7;
|
float DigitalUebergangsbereichVorgaenger = 0.9;
|
||||||
|
|
||||||
string cnnmodelfile;
|
string cnnmodelfile;
|
||||||
int modelxsize, modelysize, modelchannel;
|
int modelxsize, modelysize, modelchannel;
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
const char* GIT_REV="2b60e81";
|
const char* GIT_REV="6a5d551";
|
||||||
const char* GIT_TAG="";
|
const char* GIT_TAG="";
|
||||||
const char* GIT_BRANCH="rolling";
|
const char* GIT_BRANCH="rolling";
|
||||||
const char* BUILD_TIME="2022-08-26 21:09";
|
const char* BUILD_TIME="2022-08-27 19:49";
|
||||||
@@ -138,14 +138,14 @@ void test_doFlow() {
|
|||||||
TEST_ASSERT_EQUAL_STRING(expected, result.c_str());
|
TEST_ASSERT_EQUAL_STRING(expected, result.c_str());
|
||||||
|
|
||||||
// https://github.com/jomjol/AI-on-the-edge-device/issues/942
|
// https://github.com/jomjol/AI-on-the-edge-device/issues/942
|
||||||
digits = { 0.0, 9.9, 6.8, 3.7, 0.8, 6.9, 8.7};
|
digits = { 0.0, 9.9, 6.8, 9.9, 3.7, 0.8, 6.9, 8.7};
|
||||||
analogs = { };
|
analogs = { };
|
||||||
expected = "73179";
|
expected = "704179";
|
||||||
result = process_doFlow(analogs, digits);
|
result = process_doFlow(analogs, digits);
|
||||||
TEST_ASSERT_EQUAL_STRING(expected, result.c_str());
|
TEST_ASSERT_EQUAL_STRING(expected, result.c_str());
|
||||||
|
|
||||||
// https://github.com/jomjol/AI-on-the-edge-device/issues/942#issuecomment-1228343319
|
// https://github.com/jomjol/AI-on-the-edge-device/issues/942#issuecomment-1228343319
|
||||||
digits = { 0.0, 7.0, 1.1, 4.7, 3.7, 5.9, 9.0, 2.7};
|
digits = { 9.9, 6.8, 1.1, 4.7, 2.7, 6.0, 9.0, 2.8}; // changed 3.7 --> 2.7 (see picture in issue)
|
||||||
analogs = { };
|
analogs = { };
|
||||||
expected = "7153693";
|
expected = "7153693";
|
||||||
result = process_doFlow(analogs, digits);
|
result = process_doFlow(analogs, digits);
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
const char* GIT_REV="2b60e81";
|
const char* GIT_REV="6a5d551";
|
||||||
const char* GIT_TAG="";
|
const char* GIT_TAG="";
|
||||||
const char* GIT_BRANCH="rolling";
|
const char* GIT_BRANCH="rolling";
|
||||||
const char* BUILD_TIME="2022-08-26 21:09";
|
const char* BUILD_TIME="2022-08-27 19:49";
|
||||||
Binary file not shown.
BIN
firmware/dig-cont_0570_s3.tflite
Normal file
BIN
firmware/dig-cont_0570_s3.tflite
Normal file
Binary file not shown.
BIN
firmware/dig-cont_0570_s3_q.tflite
Normal file
BIN
firmware/dig-cont_0570_s3_q.tflite
Normal file
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user