  
      mat_umeyama = mat_umeyama * size
  
      # Convert to matrix
      landmarks = np.matrix(face.landmarks_as_xy())
  
      # cv2 expects points to be in the form
      # np.array([ [[x1, y1]], [[x2, y2]], ... ]), we'll expand the dim
      landmarks = np.expand_dims(landmarks, axis=1)
  
 
</s> remove     mat_umeyama = umeyama(np.array(face.landmarks_as_xy()[17:]),
 </s> add     logger.trace("size: %s, should_align_eyes: %s", size, should_align_eyes)
    mat_umeyama = umeyama(np.array(face.landmarks_as_xy[17:]),
 </s> remove         return np.squeeze(points)
 </s> add         retval = np.squeeze(points)
        logger.trace("Returning: %s", retval)
        return retval
 </s> remove         scale = size - 2*padding
 </s> add         logger.trace("aligned_landmarks_68: %s, size: %s, padding: %s, dilation: %s",
                     aligned_landmarks_68, size, padding, dilation)
        scale = size - 2 * padding
 </s> remove         process = SpawnProcess()
        event = process.event
 </s> add 
    landmarks = np.matrix(face.landmarks_as_xy)

  
      mat_umeyama = mat_umeyama * size
  
      # Convert to matrix
    landmarks = np.matrix(face.landmarks_as_xy)
  
      # cv2 expects points to be in the form
      # np.array([ [[x1, y1]], [[x2, y2]], ... ]), we'll expand the dim
      landmarks = np.expand_dims(landmarks, axis=1)
  
keep keep keep keep replace keep keep keep keep keep
 Logging (#541)

* Convert prints to logger. Further logging improvements. Tidy  up

* Fix system verbosity. Allow SystemExit

* Fix reload extract bug

* Child Traceback handling

* Safer shutdown procedure

* Add shutdown event to queue manager

* landmarks_as_xy > property. GUI notes + linting. Aligner bugfix

* fix FaceFilter. Enable nFilter when no Filter is supplied

* Fix blurry face filter

* Continue on IO error. Better error handling

* Explicitly print stack trace tocrash log

* Windows Multiprocessing bugfix

* Add git info and conda version to crash log

* Windows/Anaconda mp bugfix

* Logging fixes for training 
lib/aligner.py