FOMO max 10 detections

Does anyone know how to allow FOMO object detection to show more than 10 objects? I tried changing in the library the file \src\edge-impulse-sdk\classifier\ei_run_classifier.h


extern float post_process_boxes[10 * 4 * sizeof(float)];
extern float post_process_classes[10];
extern float post_process_scores[10];

but it had no effect. Is there a variable we can declare in our sketch to show more than 10 objects?

Hello @Rocksetta ,

Just asked our Embedded teams, I am not sure about the answer.
We will let you know.

Regards,

Louis

@Rocksetta, yes in model_metadata.h change EI_CLASSIFIER_OBJECT_DETECTION_COUNT - the [10] you see in the code above is for SSD.

1 Like

Cool! My MINST style FOMO. More impressive on the OLED.


Starting inferencing in 0 microseconds...
    3 (0.707031) [ x: 16, y: 0, width: 40, height: 8 ]
    5 (0.523437) [ x: 64, y: 0, width: 8, height: 8 ]
    2 (0.898437) [ x: 8, y: 8, width: 72, height: 32 ]
    5 (0.542969) [ x: 80, y: 8, width: 8, height: 8 ]
    3 (0.621094) [ x: 80, y: 16, width: 8, height: 24 ]
    3 (0.621094) [ x: 48, y: 24, width: 8, height: 8 ]
    0 (0.578125) [ x: 0, y: 32, width: 8, height: 8 ]
    0 (0.644531) [ x: 40, y: 32, width: 8, height: 8 ]
    0 (0.542969) [ x: 72, y: 40, width: 8, height: 8 ]
    0 (0.687500) [ x: 88, y: 40, width: 8, height: 16 ]
    0 (0.546875) [ x: 0, y: 48, width: 8, height: 8 ]
    1 (0.546875) [ x: 72, y: 48, width: 8, height: 8 ]
    3 (0.570312) [ x: 16, y: 56, width: 8, height: 16 ]
    3 (0.578125) [ x: 32, y: 56, width: 8, height: 16 ]
    3 (0.773437) [ x: 56, y: 56, width: 16, height: 8 ]
    2 (0.648437) [ x: 72, y: 56, width: 16, height: 8 ]
    5 (0.535156) [ x: 48, y: 64, width: 8, height: 8 ]
    4 (0.542969) [ x: 72, y: 64, width: 8, height: 8 ]

1 Like

Hej,
Our Fomo model is running on a Pi. Is there any way to increase the max 10 detections on an embedded(.eim) model?

1 Like

@jannes

Hopefully one of the PROs can help you with this, as far as I know the Linux .eim files are compiled, so you would have to compile the file yourself.

For the uncompiled file I assume the max 10 would be in the same location

\src\edge-impulse-sdk\classifier\ei_run_classifier.h Then look for the variable EI_CLASSIFIER_OBJECT_DETECTION_COUNT, having not done anything with the LInux version I am not the best one to reply.

1 Like

Thanks, @Rocksetta !

@jannes Thank you for pointing this issue out: I will report it as a bug/feature request to the devs.

1 Like