  
  
  def get_align_mat(face, size, should_align_eyes):
      """ Return the alignment Matrix """
      mat_umeyama = umeyama(np.array(face.landmarks_as_xy()[17:]),
                            LANDMARKS_2D,
                            True)[0:2]
  
      if should_align_eyes is False:
          return mat_umeyama
 
</s> remove     landmarks = np.matrix(face.landmarks_as_xy())
 </s> add     landmarks = np.matrix(face.landmarks_as_xy)
 </s> remove         return np.squeeze(points)
 </s> add         retval = np.squeeze(points)
        logger.trace("Returning: %s", retval)
        return retval

    logger.trace("size: %s, should_align_eyes: %s", size, should_align_eyes)
    mat_umeyama = umeyama(np.array(face.landmarks_as_xy[17:]),

  
  
  def get_align_mat(face, size, should_align_eyes):
      """ Return the alignment Matrix """
    logger.trace("size: %s, should_align_eyes: %s", size, should_align_eyes)
    mat_umeyama = umeyama(np.array(face.landmarks_as_xy[17:]),
                            LANDMARKS_2D,
                            True)[0:2]
  
      if should_align_eyes is False:
          return mat_umeyama
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