                       "h": bottom - top,
                       "hash": f_hash,
                       "landmarks_xy": np.array(dfl_alignments["source_landmarks"], dtype="float32")}
          logger.trace("Adding alignment: (frame: '%s', alignment: %s", sourcefile, alignment)
          alignments.setdefault(sourcefile, list()).append(alignment)
  
  
  class Draw():
      """ Draw Alignments on passed in images """
      def __init__(self, alignments, arguments):
 
</s> remove         """ Add DFL Alignments to alignments in Faceswap format """
 </s> add         """ Add Deep Face Lab Alignments to alignments in Faceswap format """ </s> remove         self.final_alignments.data.setdefault(frame, list()).append(alignment)
 </s> add         self.final_alignments.data.setdefault(frame,
                                              dict()).setdefault("faces", []).append(alignment) </s> remove             yield frame_name, alignments, face_count, frame_fullname

    @staticmethod
    def yield_original_index_reverse(image_alignments, number_alignments):
        """ Return the correct original index for
            alignment in reverse order """
        for idx, _ in enumerate(reversed(image_alignments)):
            original_idx = number_alignments - 1 - idx
            logger.trace("Yielding: face index %s", original_idx)
            yield original_idx
 </s> add             yield frame_name, val["faces"], face_count, frame_fullname
        alignments.setdefault(sourcefile, dict()).setdefault("faces", []).append(alignment)
                       "h": bottom - top,
                       "hash": f_hash,
                       "landmarks_xy": np.array(dfl_alignments["source_landmarks"], dtype="float32")}
          logger.trace("Adding alignment: (frame: '%s', alignment: %s", sourcefile, alignment)
        alignments.setdefault(sourcefile, dict()).setdefault("faces", []).append(alignment)
  
  
  class Draw():
      """ Draw Alignments on passed in images """
      def __init__(self, alignments, arguments):
keep keep keep keep replace keep keep keep keep keep
 lib.alignments - Slight update (#978)

* lib.alignments update:
  - Minor structure change (faces to nested dictionary)
  - Refactor internal and external methods
  - Documentation 
tools/lib_alignments/jobs.py