Skip to content

Commit e07b42f

Browse files
committed
Close #12 Sort labels
1 parent 37fa7d6 commit e07b42f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

utils/load_data.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,8 @@ def get_all_labels(segmap_dataset, semantic_label_path):
113113
labels = segmap_labels.numpy()
114114
first = False
115115

116+
labels.sort()
117+
116118
with open(semantic_label_path, 'w') as f :
117119
f.write(", ".join(str(v) for v in labels))
118120

0 commit comments

Comments
 (0)