          """ Set the TF Session and initialize """
          # pylint: disable=not-context-manager, no-member
          placeholder = np.zeros((1, 3, 256, 256))
          with self.graph.as_default():
              config = tf.ConfigProto()
              config.gpu_options.per_process_gpu_memory_fraction = vram_ratio
              session = tf.Session(config=config)
              with session.as_default():
                  session.run(self.output, feed_dict={self.input: placeholder})
          return session
 
</s> remove             session = tf.Session(config=config)
 </s> add             session = self.tf.Session(config=config) </s> remove             tf.import_graph_def(graph_def, name="fa")
 </s> add             self.tf.import_graph_def(graph_def, name="fa") </s> remove             sess = tf.Session()
 </s> add             sess = tf.Session(config=config) </s> remove         if self.verbose:
            print("Initializing Face Alignment Network model...")

        with tf.gfile.GFile(self.model_path, "rb") as gfile:
            graph_def = tf.GraphDef()
 </s> add         logger.verbose("Initializing Face Alignment Network model...")
        with self.tf.gfile.GFile(self.model_path, "rb") as gfile:
            graph_def = self.tf.GraphDef()
            config = self.tf.ConfigProto()
          """ Set the TF Session and initialize """
          # pylint: disable=not-context-manager, no-member
          placeholder = np.zeros((1, 3, 256, 256))
          with self.graph.as_default():
            config = self.tf.ConfigProto()
              config.gpu_options.per_process_gpu_memory_fraction = vram_ratio
              session = tf.Session(config=config)
              with session.as_default():
                  session.run(self.output, feed_dict={self.input: placeholder})
          return session
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 
plugins/extract/align/fan.py