mirror of
https://github.com/zebrajr/faceswap.git
synced 2025-12-06 00:20:09 +01:00
bugfix - add missing mask key to alignments on legacy update
This commit is contained in:
parent
dbcd507d01
commit
c2595c46d4
|
|
@ -763,8 +763,11 @@ class Alignments():
|
|||
update_count = 0
|
||||
for val in self._data.values():
|
||||
for alignment in val["faces"]:
|
||||
if "mask" not in alignment:
|
||||
alignment["mask"] = {}
|
||||
for mask in alignment["mask"].values():
|
||||
mask["stored_centering"] = "face"
|
||||
update_count += 1
|
||||
logger.debug("Updated legacy mask centering: %s", update_count)
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user