Skip to content

Commit

Permalink
Fixed as per issue tensorflow#4982
Browse files Browse the repository at this point in the history
  • Loading branch information
gedefet committed Nov 14, 2018
1 parent 61b5a0c commit 688242d
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,8 @@ def evaluate(self):
if idx + self._label_id_offset in category_index:
category_name = category_index[idx + self._label_id_offset]['name']
try:
category_name = unicode(category_name, 'utf-8')
# Fixed as per issue #4982
category_name = str(category_name, 'utf-8')
except TypeError:
pass
category_name = unicodedata.normalize(
Expand Down

0 comments on commit 688242d

Please sign in to comment.