-
Notifications
You must be signed in to change notification settings - Fork 90
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Disabled SDCARD as the default mode for Feather board, CODEC support Added. Updated weight… #266
Disabled SDCARD as the default mode for Feather board, CODEC support Added. Updated weight… #266
Conversation
…s to improve the classification of unknown words and detection in the presence of background sound, Increased the acceptance threshold for the inference confidence and declare a class as unknown if it was less than threshold.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks good
@@ -360,8 +372,7 @@ The LED | |||
|
|||
- stays *green* when it is listening | |||
- blinks *green* if a keyword is detected | |||
- blinks *red* if an unknown keyword is detected | |||
- blinks *yellow* if detection confidence is low | |||
- blinks *yellow* if detection confidence is low or unknow keyword |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
unknown
|
||
In this mode, the left channel (tip of the J5 3.5mm audio jack) of the line-in of MAX9867 audio CODEC (is used as the audio input source. | ||
|
||
To enable using CODE as the audio input source, make sure the `PROJ_CFLAGS" line is uncommented. This mode can only be enabled for the Feather board. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
CODEC
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Couple typos in README
#define MAX9867_REVID 0x42 | ||
|
||
// Register addresses | ||
#define MAX9867_00_STATUS 0x00 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe move #defines into max9867.h
@@ -61,13 +61,17 @@ | |||
#include "cnn.h" | |||
#ifdef BOARD_FTHR_REVA | |||
#include "tft_ili9341.h" | |||
#ifdef ENABLE_CODEC_MIC | |||
#include "i2c.h" | |||
#include "max9867.h" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@aniktash @vicloginov FYI Jesse added some codec drivers to Libraries/MiscDrivers/CODEC
in #240. We should use those drivers instead
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
updated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, looks good! Delete the commented code below before merge?
TFT_Print(buff, 1, 50, font_1, | ||
snprintf(buff, sizeof(buff), "__________________________ ")); | ||
TFT_Print(buff, 1, 80, font_1, snprintf(buff, sizeof(buff), "Top classes:")); | ||
//TFT_Print(buff, 1, 80, font_1, snprintf(buff, sizeof(buff), "Top classes:")); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Delete commented code?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd rather keep it in case somebody wants to see top 5 classes.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Any downside to printing out top1/top5 by default? Or is it too cluttered?
Fine by me, just needs a "uncomment to print top5" type comment I think
TFT_Print(buff, 20, 80 + 20 * top, font_1, | ||
snprintf(buff, sizeof(buff), "%s (%0.1f%%)", keywords[max_index], | ||
(double)100.0 * max / 32768.0)); | ||
//TFT_Print(buff, 20, 80 + 20 * top, font_1, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Delete commented code?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd rather keep it in case somebody wants to see top 5 classes.
…s to improve the classification of unknown words and detection in the presence of background sound, Increased the acceptance threshold for the inference confidence and declare a class as unknown if it was less than threshold.