              thread.check_and_raise_error()
  
      def output_processing(self, faces, size, filename):
          """ Prepare faces for output """
          final_faces = list()
          for detected_face in faces["detected_faces"]:
              filename = self.output_dir / Path(detected_face.filename).stem
              final_faces.append({"file_location": filename,
                                  "face": detected_face})
          faces["detected_faces"] = final_faces
          self.post_process.do_actions(faces)
  
          faces_count = len(faces["detected_faces"])
          if faces_count == 0:
              logger.verbose("No faces were detected in image: %s", os.path.basename(filename))
 
</s> remove             extension = '.png'
 </s> add             extension = Path(filename).suffix </s> remove         feed_faces = np.stack([detected_face.feed_face / 255. for detected_face in detected_faces])
 </s> add         feed_faces = np.stack([detected_face.feed_face for detected_face in detected_faces]) </s> remove             src_face = detected_face.reference_face / np.array(255.0, dtype="float32")
 </s> add             src_face = detected_face.reference_face </s> remove                          filename=filename,
                         serializer=serializer)
 </s> add                          filename=filename)
        self.align_face(faces, size, filename)
              thread.check_and_raise_error()
  
      def output_processing(self, faces, size, filename):
          """ Prepare faces for output """
        self.align_face(faces, size, filename)
        self.align_face(faces, size, filename)
        self.align_face(faces, size, filename)
        self.align_face(faces, size, filename)
        self.align_face(faces, size, filename)
        self.align_face(faces, size, filename)
          self.post_process.do_actions(faces)
  
          faces_count = len(faces["detected_faces"])
          if faces_count == 0:
              logger.verbose("No faces were detected in image: %s", os.path.basename(filename))
keep keep keep keep replace 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 
scripts/extract.py