Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support installing with pip, and run tests with GitHub Actions #82

Open
wants to merge 9 commits into
base: main
Choose a base branch
from

Conversation

jonnor
Copy link
Contributor

@jonnor jonnor commented Dec 13, 2024

Hi @Zepan. Users of emlearn-micropython (which uses TinyMaix for CNN) reported some problems. There was an exception due to keras.np_utils no longer existing, which was swallowed in the import tflite_reader. The exception has been fixed, and as well making sure that future exception get an traceback out for easier debugging.

The other issue is that they found it annoying to install TinyMaix tools, having to use a git repo/submodule manually etc. This adds support for installing as a Python package (with pip etc).

This also adds basic automated test coverage running in GitHub Actions. As well as some minor improvements in error reporting from the tests, and one fix of a failing testcase. Hopefully makes it easier to verify future contributions :)

Let me know if you want me to split this up into multiple MRs.

Avoids exceptions inside tflite_reader.py being swallowed

Requires that one runs with module load option, for example:

    python -m tools.tflite2tmdl
    OR
    python -m tinymaix.tflite2tmdl
So it can be used by Github Actions (or developers locally)
auto_test for mbnet int8 was failing due to this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant