Skip to main content
Zxiao.21
Associate
March 21, 2023
Question

'utf-8' codec can't decode byte 0xab in position 4: invalid start byte

  • March 21, 2023
  • 4 replies
  • 1872 views

hi,

When I analyze the model, I always get an error.

How should I solve it?

Thanks!

0693W00000aJO5MQAW.png

    This topic has been closed for replies.

    4 replies

    fauvarque.daniel
    ST Employee
    March 21, 2023

    Have you tried opening your model with a tool like Netron ? You can have this kind of error when the file is actually not a Keras saved model

    You can also open it with a text editor, the first characters in the file should be ‰HDF

    If the model can be viewed with Netron maybe there is an issue with the space in the path

    Regards

    Zxiao.21
    Zxiao.21Author
    Associate
    March 21, 2023

    Thanks for your reply.

    I checked these issues you said and they are all normal, eg, the model can be opened with Netron easily.

    Whether there are any special points to pay attention to in the STM32cube configuration?

    Regards

    zyaol.1
    Associate
    May 10, 2023

    Do you solve it?

    fauvarque.daniel
    ST Employee
    May 10, 2023

    Sorry for the late answer I didn't see yours, can you share your model so we can try to reproduce the issue.

    Thanks

    zyaol.1
    Associate
    May 10, 2023

    this is my model.