mocleiri / tensorflow-micropython-examples

A custom micropython firmware integrating tensorflow lite for microcontrollers and ulab to implement the tensorflow micro examples.
MIT License
170 stars 79 forks source link

Error in import microlite #77

Open LAMSTREAM opened 2 years ago

LAMSTREAM commented 2 years ago

Hi,mocleiri! I have learn about arduino and try to play micropython recently I am using the rasdpberrry pico and upload the firmware successfully But when I import hello_world.py,it doesn't work cross some efforts,I find that I can import the ulab but microlite can not can you help me to solve this problem? THANKS!

mocleiri commented 2 years ago

@LAMSTREAM can you tell me which firmware you flashed?

The latest from the main branch works but there are other builds on other branches that don't work right.

These are the latest pico main branch builds: https://github.com/mocleiri/tensorflow-micropython-examples/actions/runs/1896970046

LAMSTREAM commented 2 years ago

@LAMSTREAM can you tell me which firmware you flashed?

The latest from the main branch works but there are other builds on other branches that don't work right.

These are the latest pico main branch builds: https://github.com/mocleiri/tensorflow-micropython-examples/actions/runs/1896970046

I have try this firmware and also #79 firmware,they both didn't work :( https://imgur.com/a/7w8dbrT

mocleiri commented 2 years ago

I have an adafruit feather rp2040 I'll run the latest and see what happens for me. I've never had any issues with the firmware its always just worked. I have seen lots of crashes in the stm32 build when invoking the interpreter but never I don't think in just loading the module.

What specific board do you have? I think there should be a way to turn on verbose error messages to try to see/understand what the error is that is causing the board to hang.

LAMSTREAM commented 2 years ago

Really thank you my mocleiri! I solve this problem My board is raspberry official board,and the firmware for it are really doesn't work But I try to upload the Adaruit feather-rp2040's firmware for it this night. and it truly work now! Thanks you work for this!

mocleiri commented 2 years ago

I can see that my board is currently built first I'll reorder and see if I can reproduce the issue. Thanks for reporting and also how you fixed it