Skip to content

Commit

Permalink
solve name_set type error
Browse files Browse the repository at this point in the history
- add decoded class name to the set
  • Loading branch information
homework36 committed Jun 20, 2024
1 parent 54aa0b6 commit abb10cd
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -289,8 +289,8 @@ def serialize_class_names_to_json(settings):
for image in database:
cln=image['class_name']
if type(cln)==bytes:
cln=cln.decode()
name_set.add(image['class_name'])
cln=cln.decode()
name_set.add(cln)

for name in imported_class_names:
if type(name)==bytes:
Expand Down

0 comments on commit abb10cd

Please sign in to comment.