  >>>  "image": <four channel source image>,
  >>>  "detected_faces": <list of bounding box dicts from lib/plugins/extract/detect/_base>}
  """
  
  import base64
  import zlib
  import cv2
  import numpy as np
  
  from plugins.extract._base import Extractor, logger
  
 
</s> remove from lib.utils import get_folder, deprecation_warning
 </s> add from lib.utils import get_folder
  >>>  "image": <four channel source image>,
  >>>  "detected_faces": <list of bounding box dicts from lib/plugins/extract/detect/_base>}
  """
  


  import cv2
  import numpy as np
  
  from plugins.extract._base import Extractor, logger
  
keep keep keep keep replace replace keep keep keep keep keep
 Serialize masks to alignments file

- Add new serializers (npy + compressed)
- Remove Serializer option from cli
- Revert get_aligned call in scripts/extract
- Default alignments to compressed
- Size masks to 128px and compress
- Remove mask thresholding/blur from generation code
- Add Mask class to lib/faces_detect
- Revert debug landmarks to aligned face
- Revert non-extraction code to staging version 
plugins/extract/mask/_base.py