Skip to content

Commit

Permalink
update: latest version 6.29
Browse files Browse the repository at this point in the history
  • Loading branch information
KafCoppelia committed Jun 30, 2022
1 parent 8564d45 commit e60ae52
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 10 deletions.
8 changes: 2 additions & 6 deletions firmware-syntiant-tinyml.ino → Syntiant-tinyml-funpack.ino
Original file line number Diff line number Diff line change
Expand Up @@ -55,18 +55,14 @@ void on_classification_changed(const char *event, float confidence, float anomal
else if (strcmp(event, "turn_on") == 0) {
turn_on_cb();
}

// if (strcmp(event, "z_openset") == 0) {
// others_handle();
// }
}

void on_classification_unmatched(void) {
void on_classification_unmatched() {
if (last_state == _BLINK)
blink_cb();
else if (last_state == _TURN_ON)
turn_on_cb();
else
else if (last_state == _TURN_OFF)
turn_off_cb();
}

Expand Down
6 changes: 3 additions & 3 deletions src/model-parameters/model_metadata.h
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@

#define EI_CLASSIFIER_PROJECT_ID 114834
#define EI_CLASSIFIER_PROJECT_OWNER "Ziru Pan"
#define EI_CLASSIFIER_PROJECT_NAME "Syntiant-RC-Go-Stop-clone"
#define EI_CLASSIFIER_PROJECT_DEPLOY_VERSION 56
#define EI_CLASSIFIER_PROJECT_NAME "Syntiant-Funpack"
#define EI_CLASSIFIER_PROJECT_DEPLOY_VERSION 61
#define EI_CLASSIFIER_NN_INPUT_FRAME_SIZE 1600
#define EI_CLASSIFIER_RAW_SAMPLE_COUNT 15488
#define EI_CLASSIFIER_RAW_SAMPLES_PER_FRAME 1
Expand All @@ -69,7 +69,7 @@

#define EI_CLASSIFIER_TFLITE_INPUT_DATATYPE EI_CLASSIFIER_DATATYPE_INT8
#define EI_CLASSIFIER_TFLITE_INPUT_QUANTIZED 1
#define EI_CLASSIFIER_TFLITE_INPUT_SCALE 0.0033854166977107525
#define EI_CLASSIFIER_TFLITE_INPUT_SCALE 0.003201593179255724
#define EI_CLASSIFIER_TFLITE_INPUT_ZEROPOINT -128
#define EI_CLASSIFIER_TFLITE_OUTPUT_DATATYPE EI_CLASSIFIER_DATATYPE_INT8
#define EI_CLASSIFIER_TFLITE_OUTPUT_QUANTIZED 1
Expand Down
2 changes: 1 addition & 1 deletion src/model-parameters/model_variables.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
#include "model_metadata.h"
#include "edge-impulse-sdk/classifier/ei_model_types.h"

const char* ei_classifier_inferencing_categories[] = { "blink", "turn_off", "turn_on" };
const char* ei_classifier_inferencing_categories[] = { "turn_on", "turn_off", "blink" };

uint8_t ei_dsp_config_9_axes[] = { 0 };
const uint32_t ei_dsp_config_9_axes_size = 1;
Expand Down

0 comments on commit e60ae52

Please sign in to comment.