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

MemoryError: Model buffer memory allocation failed #39

Open
QianqianF opened this issue Jul 14, 2023 · 2 comments
Open

MemoryError: Model buffer memory allocation failed #39

QianqianF opened this issue Jul 14, 2023 · 2 comments

Comments

@QianqianF
Copy link

Describe the bug
I am trying to deploy a kmodel that's around 1MB to k210 but the model can't be loaded.

To Reproduce
Steps to reproduce the behavior:

from maix import KPU
kpu = KPU()
kpu.load("/sd/best_model_float32.kmodel")

The kmodel used and the tflite model before conversion are attached

Expected behavior
I expect the model to load without an issue given the spec of k210.

Actual behaviour
I get one of the two errors

MicroPython v1.0.5-5-ge1b2766-dirty on 2023-05-24; CanMV_Board with kendryte-k210
Traceback (most recent call last):
  File "<stdin>", line 164, in <module>
  File "<stdin>", line 64, in main
MemoryError: Model buffer memory allocation failed
MicroPython v1.0.5-5-ge1b2766-dirty on 2023-05-24; CanMV_Board with kendryte-k210
Traceback (most recent call last):
  File "<stdin>", line 164, in <module>
  File "<stdin>", line 64, in main
OSError: Failed to load model

Please complete the following information

  • IDE version: v2.9.2-2
  • Firmware version: v1.0.5-5-ge1b2766-dirty
  • Board: SiPEED M1
  • OS: Mac
@QianqianF
Copy link
Author

best_model_float32.zip

@Puiching-Memory
Copy link

I had the same problem

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

No branches or pull requests

2 participants