Intel® Distribution of OpenVINO™ Toolkit
Community assistance about the Intel® Distribution of OpenVINO™ toolkit, OpenCV, and all aspects of computer vision-related on Intel® platforms.
6401 Discussions

Error while converting saved_model (tensorflow 1.14) model

TarunMishra
Employee
1,137 Views

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
1 Solution
Munesh_Intel
Moderator
1,092 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-can-t-decode-byte-0xee-in/td-p/1190202


Regards,

Munesh


View solution in original post

0 Kudos
3 Replies
Munesh_Intel
Moderator
1,113 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
Munesh_Intel
Moderator
1,093 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-can-t-decode-byte-0xee-in/td-p/1190202


Regards,

Munesh


0 Kudos
Munesh_Intel
Moderator
1,074 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
Reply