Skip to content

Commit

Permalink
style: fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
veraposeidon committed May 12, 2024
1 parent 8432c7a commit c4c3da4
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions labelme2datasets/labelme_json2dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,8 @@ def get_label_names(data, image):
label_name = shape['label']
if label_name in label_name_to_value:
continue
else:
label_value = len(label_name_to_value)
label_name_to_value[label_name] = label_value
label_value = len(label_name_to_value)
label_name_to_value[label_name] = label_value
lbl, _ = utils.shapes_to_label(image.shape, data['shapes'], label_name_to_value)

label_names = [None] * (max(label_name_to_value.values()) + 1)
Expand Down

0 comments on commit c4c3da4

Please sign in to comment.