  
          folder:     folder alignments file is stored in
          filename:   Filename of alignments file excluding extension. If a
                      valid extension is provided, then it will be used to
                      decide the serializer, and the serializer argument will
                      be ignored.
          serializer: If provided, this will be the format that the data is
                      saved in (if data is to be saved). Can be 'json', 'pickle'
                      or 'yaml'
      """
      # pylint: disable=too-many-public-methods
      def __init__(self, folder, filename="alignments", serializer="json"):
          logger.debug("Initializing %s: (folder: '%s', filename: '%s', serializer: '%s')",
                       self.__class__.__name__, folder, filename, serializer)
 
</s> remove         filename:   Filename of alignments file excluding extension. If a
 </s> add         filename:   Filename of alignments file. If a </s> remove     def __init__(self, folder, filename="alignments", serializer="json"):
        logger.debug("Initializing %s: (folder: '%s', filename: '%s', serializer: '%s')",
                     self.__class__.__name__, folder, filename, serializer)
        self.serializer = self.get_serializer(filename, serializer)
 </s> add     def __init__(self, folder, filename="alignments"):
        logger.debug("Initializing %s: (folder: '%s', filename: '%s')",
                     self.__class__.__name__, folder, filename)
        self.serializer = self.get_serializer(filename) </s> remove             specified serializer will be used """
        logger.debug("Getting serializer: (filename: '%s', serializer: '%s')",
                     filename, serializer)
 </s> add             compressed pickle will be used """
        logger.debug("Getting serializer: (filename: '%s')", filename) </s> remove     def set_serializer(self):
        """ Set the serializer to be used for loading and
            saving alignments """
        if hasattr(self.args, "serializer") and self.args.serializer:
            logger.debug("Serializer provided: '%s'", self.args.serializer)
            serializer = self.args.serializer
        else:
            # If there is a full filename then this will be overriden
            # by filename extension
            serializer = "json"
            logger.debug("No Serializer defaulting to: '%s'", serializer)
        return serializer

 </s> add  </s> remove     def get_serializer(filename, serializer):
 </s> add     def get_serializer(filename):
                    decide the serializer otherwise compressed pickle is used.
  
          folder:     folder alignments file is stored in
          filename:   Filename of alignments file excluding extension. If a
                      valid extension is provided, then it will be used to
                    decide the serializer otherwise compressed pickle is used.
                    decide the serializer otherwise compressed pickle is used.
                    decide the serializer otherwise compressed pickle is used.
                    decide the serializer otherwise compressed pickle is used.
                    decide the serializer otherwise compressed pickle is used.
      """
      # pylint: disable=too-many-public-methods
      def __init__(self, folder, filename="alignments", serializer="json"):
          logger.debug("Initializing %s: (folder: '%s', filename: '%s', serializer: '%s')",
                       self.__class__.__name__, folder, filename, serializer)
keep keep keep keep replace replace replace 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 
lib/alignments.py