mirror of
https://github.com/deepfakes/faceswap
synced 2025-06-07 10:43:27 -04:00
Bugfix: Convert - Correctly error if a valid mask has not been selected
This commit is contained in:
parent
b6ac7b8039
commit
3f53ee9cec
1 changed files with 2 additions and 2 deletions
|
@ -407,8 +407,8 @@ class Alignments():
|
||||||
``True`` if all faces in the current alignments possess the given ``mask_type``
|
``True`` if all faces in the current alignments possess the given ``mask_type``
|
||||||
otherwise ``False``
|
otherwise ``False``
|
||||||
"""
|
"""
|
||||||
retval = any((face.get("mask", None) is not None and
|
retval = all((face.get("mask") is not None and
|
||||||
face["mask"].get(mask_type, None) is not None)
|
face["mask"].get(mask_type) is not None)
|
||||||
for val in self._data.values()
|
for val in self._data.values()
|
||||||
for face in val["faces"])
|
for face in val["faces"])
|
||||||
logger.debug(retval)
|
logger.debug(retval)
|
||||||
|
|
Loading…
Add table
Reference in a new issue