OSError: [Errno 19] ENODEV with RT1062 when running example ml with builtin models

I have a fresh RT1062 (dev firmware) and I tried to run the FOMO face detection example:

Whether SD card is plugged in or not. With latest dev release or latest official 4.7.0, same thing.

Same problem with the example image classification script.

However, it works with my own FOMO models.

By the way, the example also throws an error if the FOMO model was exported from EdgeImpulse as a library (instead of a firmware):

would be nice having an example script that works also in this case.

Hi, did you update the ROMS filesystem from the IDE? The model is located on that. Our examples require that you install the ROMFS file system. See Tools→ROMS→Reset ROMFS.

By the way, the example also throws an error if the FOMO model was exported from EdgeImpulse as a library (instead of a firmware):

Not sure what you mean by this exactly, is the EI example that they provide not working anymore?

Thanks, the example works after resetting the ROMFS.

What I meant is that if you download your custom FOMO model from EI as a library instead of a firmware (both options are given), the example script will fail once you call model.labels[i] since the model object has no “labels”, but one can find out so it’s minor:

I solved it by loading labels from the TXT file and calling it directly with labels[i]. The original issue is solved.