Skip to content
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

Merged
merged 20 commits into from
Nov 30, 2022

Conversation

aniktash
Copy link
Contributor

…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.

…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.
Copy link
Contributor

@maximreza maximreza left a 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
Copy link
Contributor

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.
Copy link
Contributor

@vicloginov vicloginov Nov 23, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

CODEC

Copy link
Contributor

@vicloginov vicloginov left a 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

@aniktash aniktash changed the title Disabled SDCARD as the default mode for Feather board, Updated weight… Disabled SDCARD as the default mode for Feather board, CODEC suppor Added. Updated weight… Nov 28, 2022
@aniktash aniktash changed the title Disabled SDCARD as the default mode for Feather board, CODEC suppor Added. Updated weight… Disabled SDCARD as the default mode for Feather board, CODEC support Added. Updated weight… Nov 28, 2022
#define MAX9867_REVID 0x42

// Register addresses
#define MAX9867_00_STATUS 0x00
Copy link
Contributor

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"
Copy link
Contributor

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

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

updated

Copy link
Contributor

@Jake-Carter Jake-Carter left a 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:"));
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Delete commented code?

Copy link
Contributor Author

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.

Copy link
Contributor

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,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Delete commented code?

Copy link
Contributor Author

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.

@Jake-Carter Jake-Carter merged commit 0bd295f into analogdevicesinc:main Nov 30, 2022
@aniktash aniktash deleted the kws20_demo_enhancement branch February 13, 2023 23:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants