espressif / esp-who

Face detection and recognition framework
Other
1.7k stars 469 forks source link

How to load a model from an external sd card (AIV-646) #272

Open Liuyuehuixue opened 1 year ago

Liuyuehuixue commented 1 year ago

Hi, I have a problem, esp-sr can load models from external sd card. https://docs.espressif.com/projects/esp-sr/zh_CN/latest/esp32s3/flash_model/README.html

I got four bin files when compiling speech recognition, and got three bin files when compiling examples such as face recognition. Compared with speech recognition, model.bin is missing, is it merged? May I ask if the example in esp-who can load the model from an external sd card to reduce the flash usage.

PrathamG commented 1 year ago

Hi! Also interested to know if face recognition model can be used from sd card instead of keeping it in flash

sun-xiangyu commented 11 months ago

Yes, face recognition model can return the face embedding (currently have not supported this API) and then you can save it anywhere.

MichaelDu9226 commented 11 months ago

@sun-xiangyu When will the function of saving and loading face recognition models from SD cards be completed?

Or how can I modify the version of idf4.4 to ensure that the face model saved in flash can be reloaded after restarting. Currently, our project is based on idf4.4, but it may not be possible to migrate to idf5.0 in the short term.

Relate this issue: https://github.com/espressif/esp-who/issues/254