Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Employee
162 Views

Error while converting saved_model (tensorflow 1.14) model

Jump to solution

I am getting the following error while converting the model:-

[ ERROR ] 'ascii' codec can't decode byte 0xd9 in position 1: ordinal not in range(128)
Unexpected exception happened during extracting attributes for node training/Adam/dense/bias/v/Read/ReadVariableOp.
Original exception message: 'ascii' codec can't decode byte 0xd9 in position 1: ordinal not in range(128)

I am attaching the folder after zipping (gender.zip). I ran the following command:-

python mo.py --saved_model_dir "./gender"

I am also attaching the tensorflow 1.14 code used to create the saved model (train.zip)

 

0 Kudos

Accepted Solutions
Highlighted
Moderator
119 Views

Hi Tarun,


The error 'ascii codec can't decode byte' generally occurs when you convert a Python 2.x str that contains non-ASCII to a Unicode string without specifying the encoding of the original string.


For your further information, do have a look at the following thread, which involves similar issue as you are facing.

https://community.intel.com/t5/Intel-Distribution-of-OpenVINO/Original-exception-message-ascii-codec...


Regards,

Munesh


View solution in original post

0 Kudos
3 Replies
Highlighted
Moderator
140 Views

Hi Tarun,


Please share more information about your model, is it an object detection/classification model, if custom model what type of layers does the model use, and environment details (versions of OpenVINO, OS, Python, CMake, etc.).

 

Regards,

Munesh.


0 Kudos
Highlighted
Moderator
120 Views

Hi Tarun,


The error 'ascii codec can't decode byte' generally occurs when you convert a Python 2.x str that contains non-ASCII to a Unicode string without specifying the encoding of the original string.


For your further information, do have a look at the following thread, which involves similar issue as you are facing.

https://community.intel.com/t5/Intel-Distribution-of-OpenVINO/Original-exception-message-ascii-codec...


Regards,

Munesh


View solution in original post

0 Kudos
Moderator
101 Views

Hi Tarun,


This thread will no longer be monitored since we have provided a solution. If you need any additional information from Intel, please submit a new question.


Regards,

Munesh


0 Kudos