      """The FAN Model.
      Converted from pyTorch via ONNX from:
      https://github.com/1adrianb/face-alignment """
  
      def __init__(self, model_path, verbose=False, ratio=1.0):
          self.verbose = verbose
          self.model_path = model_path
          self.graph = self.load_graph()
          self.input = self.graph.get_tensor_by_name("fa/0:0")
          self.output = self.graph.get_tensor_by_name("fa/Add_95:0")
          self.session = self.set_session(ratio)
 
</s> remove         return [self.transform(var_c[i], center, scale, var_a.shape[2])
                for i in range(var_a.shape[0])]
 </s> add         retval = [self.transform(var_c[i], center, scale, var_a.shape[2])
                  for i in range(var_a.shape[0])]
        logger.trace("Obtained points from prediction: %s", retval)

        return retval </s> remove     def __init__(self, verbose=False, rotation=None):
 </s> add     def __init__(self, loglevel, rotation=None):
        logger.debug("Initializing %s: (rotation: %s)", self.__class__.__name__, rotation)
        self.loglevel = loglevel </s> remove         self.verbose = verbose
 </s> add  </s> remove         self.verbose = arguments.verbose
 </s> add  </s> remove     def __init__(self, folder, verbose):
        print("\n[{} DATA]".format(self.__class__.__name__.upper()))
        self.verbose = verbose
 </s> add     def __init__(self, folder):
        logger.info("[%s DATA]", self.__class__.__name__.upper())
    def __init__(self, model_path, ratio=1.0):
        # Must import tensorflow inside the spawned process
        # for Windows machines
        import tensorflow as tf
        self.tf = tf

      """The FAN Model.
      Converted from pyTorch via ONNX from:
      https://github.com/1adrianb/face-alignment """
  
    def __init__(self, model_path, ratio=1.0):
        # Must import tensorflow inside the spawned process
        # for Windows machines
        import tensorflow as tf
        self.tf = tf

    def __init__(self, model_path, ratio=1.0):
        # Must import tensorflow inside the spawned process
        # for Windows machines
        import tensorflow as tf
        self.tf = tf

          self.model_path = model_path
          self.graph = self.load_graph()
          self.input = self.graph.get_tensor_by_name("fa/0:0")
          self.output = self.graph.get_tensor_by_name("fa/Add_95:0")
          self.session = self.set_session(ratio)
keep keep keep keep replace 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 
plugins/extract/align/fan.py