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

[MAIXPY]OSError:ERR_OUTPUTS_SET :kpu.set_outputs() to set shape #483

Open
Ratchapol0507 opened this issue Mar 12, 2023 · 0 comments
Open

Comments

@Ratchapol0507
Copy link

Ratchapol0507 commented Mar 12, 2023

HELLO @AIWintermuteAI
I followed your GitHub operation and finally trained a 2 class model mushroom (Edible,Poison) , then i flash the you firmware maixpy.bin which you post in the another question, after that i flash the model to the k210 , when run the script mushroom ,but get error [MAIXPY] OSError:kpu: set_outputs to set shape .

a = kpu.set_outputs(task, 0, 7,7,21) #the actual shape needs to match the last layer shape of your model(before Reshape)
a = kpu.set_outputs(task, 1, 14,14,21) #the actual shape needs to match the last layer shape of your model(before Reshape)

 !!!Could you help me fix this problem?!!!

Code colab me used to train the model, follow the link below.
https://colab.research.google.com/drive/1gVoFMYr8BOKIzy_YojohqbKYpNfRrzLw?usp=sharing

 The image below has the problem.

image

image

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

1 participant