mirror of
https://github.com/wassname/sloth.git
synced 2026-07-12 17:57:42 +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