  import os
  import pickle
  
  from lib.utils import FaceswapError
  
  try:
      import yaml
  except ImportError:
 
</s> remove import logging
 </s> add  </s> remove from lib.utils import get_folder, deprecation_warning
 </s> add from lib.utils import get_folder
import zlib

from io import BytesIO

import numpy as np
  import os
  import pickle
import zlib

from io import BytesIO

import numpy as np
  
  from lib.utils import FaceswapError
  
  try:
      import yaml
  except ImportError:
keep add keep 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 
lib/serializer.py