  
      def update_alignments(self, landmarks):
          """ Update smoothed landmarks back to alignments """
          for idx, frame in tqdm(self.mappings.items(), desc="Updating"):
              logger.trace("Updating: (frame: %s)", frame)
              landmarks_update = landmarks[:, :, idx].astype(int)
              landmarks_xy = landmarks_update.reshape(68, 2).tolist()
 
</s> remove         start_tileblock = np.tile(landmarks[:, :, 0][:, :, np.newaxis],
                                  [1, 1, filter_half_length])
        end_tileblock = np.tile(landmarks[:, :, -1][:, :, np.newaxis],
                                [1, 1, filter_half_length])
        landmarks_padded = np.dstack((start_tileblock,
                                      landmarks,
                                      end_tileblock))
        return signal.convolve(landmarks_padded, temporal_filter,
                               mode='valid', method='fft')
 </s> add         start_tileblock = np.tile(landmarks[:, :, 0][:, :, np.newaxis], [1, 1, filter_half_length])
        end_tileblock = np.tile(landmarks[:, :, -1][:, :, np.newaxis], [1, 1, filter_half_length])
        landmarks_padded = np.dstack((start_tileblock, landmarks, end_tileblock))

        retval = signal.convolve(landmarks_padded, temporal_filter, mode='valid', method='fft')
        logger.debug("Temporally Smoothed: %s", retval)
        return retval </s> remove             logger.debug("No face to delete")
 </s> add             logger.debug("No face to delete: (frame: '%s', idx %s)", frame, idx) </s> remove         and remove the 'r' parameter """
    def __init__(self, alignments, frames):
 </s> add         and remove the 'r' parameter
        - Add face hashes to alignments file
        """
    def __init__(self, alignments, frames, faces_dir): </s> remove         and remove the 'r' parameter """
 </s> add           and remove the 'r' parameter
        - Add face hashes to alignments file
    """
        logger.debug("Update alignments")
  
      def update_alignments(self, landmarks):
          """ Update smoothed landmarks back to alignments """
        logger.debug("Update alignments")
          for idx, frame in tqdm(self.mappings.items(), desc="Updating"):
              logger.trace("Updating: (frame: %s)", frame)
              landmarks_update = landmarks[:, :, idx].astype(int)
              landmarks_xy = landmarks_update.reshape(68, 2).tolist()
keep keep add keep keep keep keep
 Add Face Hashes to Alignments (#550)

* Convert main scripts to use face hashes

* Alignment tool: Use hashes, add logging, add face rename function

* More logging. Update Manual tool to work with hashing 
tools/lib_alignments/jobs.py