  """ Tool to generate masks and previews of masks for existing alignments file """
  import logging
  import os
  import sys
  from typing import Any, cast, Dict, List, Optional, Tuple, TYPE_CHECKING, Union
  
  import cv2
  import numpy as np
  from tqdm import tqdm
  
 
</s> remove     from lib.align.alignments import AlignmentFileDict, PNGHeaderDict, PNGHeaderSourceDict
 </s> add     from lib.align.alignments import AlignmentFileDict, PNGHeaderDict </s> remove             if not metadata.get("source_frame_dims"):
 </s> add             if "source_frame_dims" not in metadata.get("source", {}):
from typing import cast, List, Optional, Tuple, TYPE_CHECKING, Union
  """ Tool to generate masks and previews of masks for existing alignments file """
  import logging
  import os
  import sys
from typing import cast, List, Optional, Tuple, TYPE_CHECKING, Union
  
  import cv2
  import numpy as np
  from tqdm import tqdm
  
keep keep keep keep replace keep keep keep keep keep
 bugfix: Mask tool, fix faces input type 
tools/mask/mask.py