mirror of
https://github.com/wassname/sloth.git
synced 2026-09-10 12:31:29 +08:00
sort json keys to avoid big diffs on every save
This commit is contained in:
@@ -311,7 +311,7 @@ class JsonContainer(AnnotationContainer):
|
||||
"""
|
||||
# TODO make all image filenames relative to the label file
|
||||
f = open(fname, "w")
|
||||
json.dump(annotations, f, indent=4)
|
||||
json.dump(annotations, f, indent=4, sort_keys=True)
|
||||
|
||||
|
||||
class YamlContainer(AnnotationContainer):
|
||||
|
||||
Reference in New Issue
Block a user