  import numpy as np
  import imageio
  
  from lib.align import Alignments as AlignmentsBase, get_centered_size
  from lib.face_filter import FaceFilter as FilterFunc
  from lib.image import count_frames, read_image
  from lib.utils import (camel_case_split, get_image_paths, _video_extensions)
  
  if sys.version_info < (3, 8):
      from typing_extensions import get_args, Literal
 
</s> remove if sys.version_info < (3, 8):
    from typing_extensions import get_args, Literal
else:
    from typing import get_args, Literal

 </s> add  </s> remove from lib.align import AlignedFace
 </s> add from lib.align import AlignedFace, DetectedFace
from lib.image import read_image_meta
  import numpy as np
  import imageio
  
  from lib.align import Alignments as AlignmentsBase, get_centered_size

  from lib.image import count_frames, read_image
  from lib.utils import (camel_case_split, get_image_paths, _video_extensions)
  
  if sys.version_info < (3, 8):
      from typing_extensions import get_args, Literal
keep keep keep keep replace keep keep keep keep keep
 Update Face Filter
  - Remove old face filter
  - plugins.extract.pipeline: Expose plugins directly
  - Change `is_aligned` from plugin level to ExtractMedia level
  - Allow extract pipeline to take faceswap aligned images
  - Add ability for recognition plugins to accept aligned faces as input
  - Add face filter to recognition plugin
  - Move extractor pipeline IO ops to own class 
scripts/fsmedia.py