emlearn / emlearn-micropython

Efficient Machine Learning engine for MicroPython
51 stars 13 forks source link

More convenient install #4

Open jonnor opened 6 months ago

jonnor commented 6 months ago

Install currently have several steps

While this is not particularly difficult, there is room for improvements.

jonnor commented 6 months ago

The ideal solution would be to be able to run mpremote mip install emltrees, and that this would automatically handle each step. However, mip support for native module does not seem to be actively worked on.

jonnor commented 6 months ago

A slight improvement would be if one could use mpremote cp to download directly from an URL. mpremote cp https://github.io/emlearn/emlearn-micropython/releases/$version/$arch/emltrees.py :

This would also be useful for model files (.csv), and similar cases that need some data into the device. This could be done by implementing HTTP(S) support in fs_put of https://github.com/micropython/micropython/blob/master/tools/mpremote/mpremote/transport_serial.py

We would also need to publish built files to a web server. For example using Github Actions to push to Github Pages.

jonnor commented 6 months ago

MR with support for HTTP download for mpremote is now here, https://github.com/micropython/micropython/pull/13292

jonnor commented 1 month ago

We are now pushing build binaries to Github pages. So documentation needs to be updated to reflect this