Skip to content

Commit 9e0e4b0

Browse files
committed
Merge branch 'feat/optimize_ai_example' into 'master'
feat(ai_example): update ESP-DL version and optimize model ram usage See merge request ae_group/esp-iot-solution!1298
2 parents eab1f42 + 3e3584e commit 9e0e4b0

File tree

4 files changed

+4
-2
lines changed

4 files changed

+4
-2
lines changed

examples/ai/esp_dl/human_activity_recognition/main/human_activity_recognition.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@ HumanActivityRecognition::HumanActivityRecognition(const char *model_name,
7979
size_t feature_size)
8080
{
8181
m_model = new dl::Model(model_name, fbs::MODEL_LOCATION_IN_FLASH_PARTITION);
82+
m_model->minimize();
8283
m_preprocessor = new DataPreprocessor(m_model, mean, std, feature_size);
8384
m_postprocessor = new DataPostprocessor(m_model);
8485
m_feature_size = feature_size;
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
dependencies:
22
idf: '>=5.3'
3-
espressif/esp-dl: "=3.1.0"
3+
espressif/esp-dl: "=3.1.3"

examples/ai/esp_dl/touchpad_digit_recognition/main/idf_component.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,4 @@ dependencies:
1616
# public: true
1717
espressif/touch_sensor_lowlevel: ^0.6.0
1818
espressif/button: "^4.0.0"
19-
espressif/esp-dl: "=3.1.0"
19+
espressif/esp-dl: "=3.1.3"

examples/ai/esp_dl/touchpad_digit_recognition/main/touch_digit_recognition.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ int DataPostprocessor::process()
6060
TouchDigitRecognition::TouchDigitRecognition(const char* model_name, size_t feature_size)
6161
{
6262
m_model = new dl::Model(model_name, fbs::MODEL_LOCATION_IN_FLASH_PARTITION);
63+
m_model->minimize();
6364
m_preprocessor = new DataPreprocessor(m_model, feature_size);
6465
m_postprocessor = new DataPostprocessor(m_model);
6566
m_feature_size = feature_size;

0 commit comments

Comments
 (0)