mirror of
https://github.com/zebrajr/faceswap.git
synced 2025-12-06 00:20:09 +01:00
patch writer: Sort the json file by key
This commit is contained in:
parent
3336772ff1
commit
8e6c6c3500
|
|
@ -277,5 +277,5 @@ class Writer(Output):
|
|||
return
|
||||
fname = os.path.join(self.output_folder, "matrices.json")
|
||||
with open(fname, "w", encoding="utf-8") as ofile:
|
||||
json.dump(self._matrices, ofile, indent=2)
|
||||
json.dump(self._matrices, ofile, indent=2, sort_keys=True)
|
||||
logger.info("Patch matrices written to: '%s'", fname)
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user