Seeed Grove Vision AI Module V2 (Himax WiseEye2) - Model fails on Device

The model creates and downloads, but after taking a photo it “Fails to allocate TFLite arena”???

Note: As Seeed Grove Vision AI Module V2 is not selectable as a TARGET Option, I have selected

, since that is the device used on the Seeed Grove Vision AI Module V2.

Also, I get an error when I connect the Vision AI Module V2 to the EdgeImpulse for Live Classification:

From my MAC terminal:
% edge-impulse-run-impulse –debug

Edge Impulse impulse runner v1.32.1

[SER] Connecting to /dev/tty.usbmodem58370596661

[SER] Serial is connected, trying to read config…

[SER] Retrieved configuration

[SER] Device is running AT command version 1.8.0

[SER] To get a live feed of the camera and live classification in your browser, run with --debug

[SER] Started inferencing, press CTRL+C to stop…

LSE

cis_OV5647_init

mclk DIV3, xshutdown_pin=82

Set PA1(AON_GPIO1) to High

hx_drv_cis_set_slaveID(0x36)

OV5647 Init Stream by app

Allocating for subs 1

WD1[3408f930], WD2_J[3408f930], WD3_RAW[34094438], JPAuto[3408dca0]

MIPI TX CLK: 96M

MIPI CSI Init Enable

MIPI TX CLK: 96M

MIPI BITRATE 1LANE: 440M

MIPI DATA LANE: 2

MIPI PIXEL DEPTH: 10

MIPI LINE LENGTH: 640

MIPI FRAME LENGTH: 480

MIPI CONTINUOUSOUT: 1

MIPI DESKEW: 0

t_input: 7387ns

t_output: 6666ns

t_preload: 385ns

MIPI RX FIFO FILL: 10

MIPI TX FIFO FILL: 0

RESET MIPI CSI RX/TX

VMUTE: 0x00000000

0x53061000: 0x0606070D

0x53061004: 0x2B07201C

0x53061008: 0x00000505

0x5306100C: 0x00005500

0x53061010: 0x00000000

sensor_type: 15

OV5647 on by app done

g_cursensorstream: 0

Inferencing settings:

Image resolution: 192x192

Frame size: 36864

No. of classes: 2

Starting inferencing in 1 seconds…

cis_OV5647_init

mclk DIV3, xshutdown_pin=82

Set PA1(AON_GPIO1) to High

hx_drv_cis_set_slaveID(0x36)

OV5647 Init Stream by app

Allocating for subs 1

WD1[340cc840], WD2_J[340cc840], WD3_RAW[340d1348], JPAuto[3408dd40]

MIPI TX CLK: 96M

MIPI CSI Init Enable

MIPI TX CLK: 96M

MIPI BITRATE 1LANE: 440M

MIPI DATA LANE: 2

MIPI PIXEL DEPTH: 10

MIPI LINE LENGTH: 640

MIPI FRAME LENGTH: 480

MIPI CONTINUOUSOUT: 1

MIPI DESKEW: 0

t_input: 7387ns

t_output: 6666ns

t_preload: 385ns

MIPI RX FIFO FILL: 10

MIPI TX FIFO FILL: 0

RESET MIPI CSI RX/TX

VMUTE: 0x00000000

0x53061000: 0x0606070D

0x53061004: 0x2B07201C

0x53061008: 0x00000505

0x5306100C: 0x00005500

0x53061010: 0x00000000

sensor_type: 15

OV5647 on by app done

g_cursensorstream: 0

OV5647 on by app done

g_cursensorstream: 0

Taking photo…

Failed to allocate TFLite arena (zu bytes)

ERR: Failed to run impulse (-6)

Taking photo…

Failed to allocate TFLite arena (zu bytes)

ERR: Failed to run impulse (-6) % edge-impulse-run-impulse –debug

Edge Impulse impulse runner v1.32.1

[SER] Connecting to /dev/tty.usbmodem58370596661

[SER] Serial is connected, trying to read config…

[SER] Retrieved configuration

[SER] Device is running AT command version 1.8.0

[SER] To get a live feed of the camera and live classification in your browser, run with --debug

[SER] Started inferencing, press CTRL+C to stop…

LSE

cis_OV5647_init

mclk DIV3, xshutdown_pin=82

Set PA1(AON_GPIO1) to High

hx_drv_cis_set_slaveID(0x36)

OV5647 Init Stream by app

Allocating for subs 1

WD1[3408f930], WD2_J[3408f930], WD3_RAW[34094438], JPAuto[3408dca0]

MIPI TX CLK: 96M

MIPI CSI Init Enable

MIPI TX CLK: 96M

MIPI BITRATE 1LANE: 440M

MIPI DATA LANE: 2

MIPI PIXEL DEPTH: 10

MIPI LINE LENGTH: 640

MIPI FRAME LENGTH: 480

MIPI CONTINUOUSOUT: 1

MIPI DESKEW: 0

t_input: 7387ns

t_output: 6666ns

t_preload: 385ns

MIPI RX FIFO FILL: 10

MIPI TX FIFO FILL: 0

RESET MIPI CSI RX/TX

VMUTE: 0x00000000

0x53061000: 0x0606070D

0x53061004: 0x2B07201C

0x53061008: 0x00000505

0x5306100C: 0x00005500

0x53061010: 0x00000000

sensor_type: 15

OV5647 on by app done

g_cursensorstream: 0

Inferencing settings:

Image resolution: 192x192

Frame size: 36864

No. of classes: 2

Starting inferencing in 1 seconds…

cis_OV5647_init

mclk DIV3, xshutdown_pin=82

Set PA1(AON_GPIO1) to High

hx_drv_cis_set_slaveID(0x36)

OV5647 Init Stream by app

Allocating for subs 1

WD1[340cc840], WD2_J[340cc840], WD3_RAW[340d1348], JPAuto[3408dd40]

MIPI TX CLK: 96M

MIPI CSI Init Enable

MIPI TX CLK: 96M

MIPI BITRATE 1LANE: 440M

MIPI DATA LANE: 2

MIPI PIXEL DEPTH: 10

MIPI LINE LENGTH: 640

MIPI FRAME LENGTH: 480

MIPI CONTINUOUSOUT: 1

MIPI DESKEW: 0

t_input: 7387ns

t_output: 6666ns

t_preload: 385ns

MIPI RX FIFO FILL: 10

MIPI TX FIFO FILL: 0

RESET MIPI CSI RX/TX

VMUTE: 0x00000000

0x53061000: 0x0606070D

0x53061004: 0x2B07201C

0x53061008: 0x00000505

0x5306100C: 0x00005500

0x53061010: 0x00000000

sensor_type: 15

OV5647 on by app done

g_cursensorstream: 0

OV5647 on by app done

g_cursensorstream: 0

Taking photo…

Failed to allocate TFLite arena (zu bytes)

ERR: Failed to run impulse (-6)

Taking photo…

Failed to allocate TFLite arena (zu bytes)

ERR: Failed to run impulse (-6)

Hi,

This error indicates the model is too big to fit in RAM. You can decrease image resolution and select Grayscale to make the model smaller.