  
  from lib.image import batch_convert_color, read_image_batch
  from lib.multithreading import BackgroundGenerator
  from lib.utils import FaceswapError
  
  logger = logging.getLogger(__name__)  # pylint: disable=invalid-name
  
 
</s> remove from lib.utils import get_folder, deprecation_warning
 </s> add from lib.utils import get_folder </s> remove import logging
 </s> add 
from lib.model import masks
  
  from lib.image import batch_convert_color, read_image_batch
from lib.model import masks
  from lib.multithreading import BackgroundGenerator
  from lib.utils import FaceswapError
  
  logger = logging.getLogger(__name__)  # pylint: disable=invalid-name
  
keep add 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/training_data.py