  #!/usr/bin/env python3
  """
  Library for serializing python objects to and from various different serializer formats
  """
  import logging
  import json
  import os
  import pickle
  
  from lib.utils import FaceswapError
 
</s>
  #!/usr/bin/env python3
  """
  Library for serializing python objects to and from various different serializer formats
  """

  import json
  import os
  import pickle
  
  from lib.utils import FaceswapError
keep keep keep keep 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
lib/serializer.py