Skip to content

Commit

Permalink
Merge branch 'staging'
Browse files Browse the repository at this point in the history
  • Loading branch information
torzdf committed Dec 19, 2022
2 parents 6913e42 + ac6bda7 commit dd64ed5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tools/mask/mask.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import logging
import os
import sys
from typing import Any, cast, Dict, List, Optional, Tuple, TYPE_CHECKING, Union
from typing import cast, List, Optional, Tuple, TYPE_CHECKING, Union

import cv2
import numpy as np
Expand All @@ -19,7 +19,7 @@
if TYPE_CHECKING:
from argparse import Namespace
from lib.align.aligned_face import CenteringType
from lib.align.alignments import AlignmentFileDict, PNGHeaderDict, PNGHeaderSourceDict
from lib.align.alignments import AlignmentFileDict, PNGHeaderDict
from lib.queue_manager import EventQueue

logger = logging.getLogger(__name__) # pylint:disable=invalid-name
Expand Down Expand Up @@ -234,7 +234,7 @@ def _input_faces(self, *args: Union[tuple, Tuple["EventQueue"]]) -> None:
logger.warning("Legacy face not found in alignments file. This face has not "
"been updated: '%s'", filename)
continue
if not metadata.get("source_frame_dims"):
if "source_frame_dims" not in metadata.get("source", {}):
logger.error("The faces need to be re-extracted as at least some of them do not "
"contain information required to correctly generate masks.")
logger.error("You can re-extract the face-set by using the Alignments Tool's "
Expand Down

0 comments on commit dd64ed5

Please sign in to comment.