.eim file size bigger than .tflite?

Hi, can anyone tell me whether the following case is a normal behavior of Edge Impulse? I have got:

$ ls -l *.lite
-rw-r--r-- 1 user user 321352 Jan 17 11:10 ei-images-transfer-learning-tensorflow-lite-int8-quantized-model.lite


$ edge-impulse-linux-runner --download model.eim --quantized
$ ls -l *.eim
-rwxr-xr-x 1 user user 10754364 Jan 17 06:44 model.eim

My project dashboard displays:

Question : Why is there a huge difference in size between .eim and .lite files?

Thanks in advance

The .eim file is more than just a model–it’s a “runner” (fully executable) that contains the DSP code for feature extraction (found in the “processing block” of your project) along with IPC code to communicate with your application. You can read more about it here: Edge Impulse for Linux - Edge Impulse Documentation

Thanks for your answer. I have got another question.
With relatively larger sizes, what is the main use case of .eim as an executable file? What are the differences between an eim executable and an optimized firmware(generated by EON compiler)? I found out that the following optimized firmware images can be generated.
Thanks in advance.

I found an answer to my question. .eim is used only for devices running Linux OS. Correct me if I am wrong.


1 Like

Hello @boaz,

You’re right!


1 Like