                          source=dict(alignments_version=file_info["alignments_version"],
                                      original_filename=orig_filename,
                                      face_index=new_index,
                                      source_filename=frame,
                                      source_is_video=file_info["source_is_video"]))
              update_existing_metadata(fullpath, meta)
  
          logger.info("%s Extracted face(s) had their header information updated", len(to_update))
  
  
 
</s> remove 
 </s> add             if "source_frame_dims" not in metadata["source"]:
                logger.error("The faces need to be re-extracted as at least some of them do not "
                             "contain information required to correctly generate masks.")
                logger.error("You can re-extract the face-set by using the Alignments Tool's "
                             "Extract job.")
                break </s> remove         for mask, face, feed_face in zip(batch["prediction"],
                                         batch["detected_faces"],
                                         batch["feed_faces"]):
 </s> add         for mask, face, feed_face, roi_mask in zip(batch["prediction"],
                                                   batch["detected_faces"],
                                                   batch["feed_faces"],
                                                   batch["roi_masks"]):
            self._crop_out_of_bounds(mask, roi_mask) </s> remove                 center = np.rint(offset + self._head_size / 2).astype("int32")
 </s> add                 center = np.rint(adjusted + self._head_size / 2).astype("int32") </s> remove from lib.align import AlignedFace
 </s> add from lib.align import AlignedFace, transform_image
                                    source_is_video=file_info["source_is_video"],
                                    source_frame_dims=file_info.get("source_frame_dims")))
                          source=dict(alignments_version=file_info["alignments_version"],
                                      original_filename=orig_filename,
                                      face_index=new_index,
                                      source_filename=frame,
                                    source_is_video=file_info["source_is_video"],
                                    source_frame_dims=file_info.get("source_frame_dims")))
              update_existing_metadata(fullpath, meta)
  
          logger.info("%s Extracted face(s) had their header information updated", len(to_update))
  
  
keep keep keep keep replace keep keep keep keep keep
 extract: mask - Delete any mask from outside of frame boundaries 
tools/alignments/jobs.py