Skip to content

Commit

Permalink
SDK release v1.66.14
Browse files Browse the repository at this point in the history
  • Loading branch information
francovaro committed Jan 13, 2025
1 parent 7bec348 commit afbee7b
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 26 deletions.
12 changes: 6 additions & 6 deletions EdgeImpulse.EI-SDK.pdsc
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,16 @@
<name>EI-SDK</name>
<license>LICENSE-apache-2.0.txt</license>
<description>Edge Impulse SDK</description>
<url>https://github.com/edgeimpulse/edge-impulse-sdk-pack/releases/download/v1.66.3/</url>
<url>https://github.com/edgeimpulse/edge-impulse-sdk-pack/releases/download/v1.66.14/</url>
<supportContact>[email protected]</supportContact>
<repository type="git">https://github.com/edgeimpulse/edge-impulse-sdk-pack.git</repository>
<releases>
<release version="1.66.3" tag="v1.66.3" date="2025-01-03" url="https://github.com/edgeimpulse/edge-impulse-sdk-pack/releases/download/v1.66.3/EdgeImpulse.EI-SDK.1.66.3.pack">
<release version="1.66.14" tag="v1.66.14" date="2025-01-13" url="https://github.com/edgeimpulse/edge-impulse-sdk-pack/releases/download/v1.66.14/EdgeImpulse.EI-SDK.1.66.14.pack">
EI-SDK
</release>
<release version="1.66.3" tag="v1.66.3" date="2025-01-03" url="https://github.com/edgeimpulse/edge-impulse-sdk-pack/releases/download/v1.66.3/EdgeImpulse.EI-SDK.1.66.3.pack">
EI-SDK
</release>
<release version="1.65.0" tag="v1.65.0" date="2024-12-20" url="https://github.com/edgeimpulse/edge-impulse-sdk-pack/releases/download/v1.65.0/EdgeImpulse.EI-SDK.1.65.0.pack">
EI-SDK
</release>
Expand Down Expand Up @@ -98,9 +101,6 @@
</release>
<release version="1.53.3" tag="v1.53.3" date="2024-07-01" url="https://github.com/edgeimpulse/edge-impulse-sdk-pack/releases/download/v1.53.3/EdgeImpulse.EI-SDK.1.53.3.pack">
EI-SDK
</release>
<release version="1.52.11" tag="v1.52.11" date="2024-06-25" url="https://github.com/edgeimpulse/edge-impulse-sdk-pack/releases/download/v1.52.11/EdgeImpulse.EI-SDK.1.52.11.pack">
EI-SDK
</release>
</releases>
<keywords>
Expand Down Expand Up @@ -146,7 +146,7 @@
</packages>
</requirements>
<components>
<component Cclass="EdgeImpulse" Cgroup="SDK" Cversion="1.66.3">
<component Cclass="EdgeImpulse" Cgroup="SDK" Cversion="1.66.14">
<description>Edge Impulse SDK</description>
<!-- short component description -->
<files>
Expand Down
4 changes: 2 additions & 2 deletions EdgeImpulse.pidx
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
<index schemaVersion="1.0.0" xs:noNamespaceSchemaLocation="PackIndex.xsd" xmlns:xs="http://www.w3.org/2001/XMLSchema-instance">
<vendor>EdgeImpulse</vendor>
<url>https://raw.githubusercontent.com/edgeimpulse/edge-impulse-sdk-pack/main/</url>
<timestamp>2025-01-03 12:23:57</timestamp>
<timestamp>2025-01-13 17:34:49</timestamp>
<pindex>
<pdsc url="https://github.com/edgeimpulse/edge-impulse-sdk-pack/releases/download/v1.66.3/" vendor="EdgeImpulse" name="EI-SDK" version="1.66.3"/>
<pdsc url="https://github.com/edgeimpulse/edge-impulse-sdk-pack/releases/download/v1.66.14/" vendor="EdgeImpulse" name="EI-SDK" version="1.66.14"/>
</pindex>
</index>
8 changes: 4 additions & 4 deletions edgeimpulse/edge-impulse-sdk/classifier/ei_run_classifier.h
Original file line number Diff line number Diff line change
Expand Up @@ -102,13 +102,13 @@ therefore changes are allowed. */
__attribute__((unused)) void display_results(ei_impulse_handle_t *handle, ei_impulse_result_t* result)
{
// print the predictions
ei_printf("Timing: DSP ");
ei_printf("Predictions (DSP: ");
result->timing.dsp_us ? ei_printf_float((float)result->timing.dsp_us/1000) : ei_printf("%d", result->timing.dsp);
ei_printf(" ms, inference ");
ei_printf(" ms., Classification: ");
result->timing.classification_us ? ei_printf_float((float)result->timing.classification_us/1000) : ei_printf("%d", result->timing.classification);
ei_printf(" ms, anomaly ");
ei_printf(" ms., Anomaly: ");
result->timing.anomaly_us ? ei_printf_float((float)result->timing.anomaly_us/1000) : ei_printf("%d", result->timing.anomaly);
ei_printf(" ms\r\n");
ei_printf("ms.): \n");

#if EI_CLASSIFIER_OBJECT_DETECTION == 1
ei_printf("#Object detection results:\r\n");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,8 @@ namespace fft {
*/
static int cmsis_rfft_init_f32(arm_rfft_fast_instance_f32 *rfft_instance, const size_t n_fft)
{
// ARM now has functions that can do this for you...and it may work for for Helium as well
// https://github.com/ARM-software/CMSIS-DSP/issues/179
// ARM cores (ex M55) with Helium extensions (MVEF) need special treatment (Issue 2843)
#if EI_CLASSIFIER_HAS_FFT_INFO == 1 && !defined(ARM_MATH_MVEF) && \
!defined(EI_CLASSIFIER_LOAD_ALL_FFTS)
Expand Down
21 changes: 7 additions & 14 deletions edgeimpulse/edge-impulse-sdk/dsp/numpy.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -1333,25 +1333,18 @@ class numpy {
src_size = n_fft;
}

// declare input and output arrays
float *fft_input_buffer = NULL;
if (src_size >= n_fft) { // technically they can only be equal or src < n_fft, b/c of step above
fft_input_buffer = (float*)src;
} // else we need to copy over and pad

// If fft_input_buffer is NULL (see above), then the constructor will allocate a new buffer
EI_DSP_MATRIX_B(fft_input, 1, n_fft, fft_input_buffer);
// Unfortunately, arm fft (at least) modifies the input buffer AND does not work in place
// So we have to copy the input to a new buffer
EI_DSP_MATRIX(fft_input, 1, n_fft);
if (!fft_input.buffer) {
EIDSP_ERR(EIDSP_OUT_OF_MEM);
}

// If the buffer wasn't assigned to source above, let's copy and pad
if (!fft_input_buffer) {
// copy from src to fft_input
memcpy(fft_input.buffer, src, src_size * sizeof(float));
// pad to the rigth with zeros
memset(fft_input.buffer + src_size, 0, (n_fft - src_size) * sizeof(float));
}
// copy from src to fft_input
memcpy(fft_input.buffer, src, src_size * sizeof(float));
// pad to the rigth with zeros
memset(fft_input.buffer + src_size, 0, (n_fft - src_size) * sizeof(float));

auto res = ei::fft::hw_r2c_fft(fft_input.buffer, output, n_fft);
if (handle_fft_hw_failure(res, n_fft)) {
Expand Down

0 comments on commit afbee7b

Please sign in to comment.