                       self.__class__.__name__, is_extract, input_is_video)
          self.args = arguments
          self.is_extract = is_extract
          folder, filename = self.set_folder_filename(input_is_video)
          serializer = self.set_serializer()
          super().__init__(folder,
                           filename=filename,
                           serializer=serializer)
          logger.debug("Initialized %s", self.__class__.__name__)
  
 
</s> remove                          filename=filename,
                         serializer=serializer)
 </s> add                          filename=filename) </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     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         self.set_preview_feed()
 </s> add  </s> remove         elif serializer not in ("json", "pickle", "yaml"):
            raise ValueError("Error: {} is not a valid serializer. Use "
                             "'json', 'pickle' or 'yaml'")
 </s> add 
                       self.__class__.__name__, is_extract, input_is_video)
          self.args = arguments
          self.is_extract = is_extract
          folder, filename = self.set_folder_filename(input_is_video)

          super().__init__(folder,
                           filename=filename,
                           serializer=serializer)
          logger.debug("Initialized %s", self.__class__.__name__)
  
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 
scripts/fsmedia.py