  
          with tf.gfile.GFile(self.model_path, "rb") as gfile:
              graph_def = tf.GraphDef()
              graph_def.ParseFromString(gfile.read())
          fa_graph = tf.Graph()
          with fa_graph.as_default():
              tf.import_graph_def(graph_def, name="fa")
          return fa_graph
  
      def set_session(self, vram_ratio):
 
</s> remove             tf.import_graph_def(graph_def, name="fa")
 </s> add             self.tf.import_graph_def(graph_def, name="fa") </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() </s> remove             sess = tf.Session()
 </s> add             sess = tf.Session(config=config) </s> remove                 print("ERROR: No Valid PNG header: {}".format(filename))
 </s> add                 logger.error("No Valid PNG header: %s", filename)
        fa_graph = self.tf.Graph()
  
          with tf.gfile.GFile(self.model_path, "rb") as gfile:
              graph_def = tf.GraphDef()
              graph_def.ParseFromString(gfile.read())
        fa_graph = self.tf.Graph()
          with fa_graph.as_default():
              tf.import_graph_def(graph_def, name="fa")
          return fa_graph
  
      def set_session(self, vram_ratio):
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