              config = self.tf.ConfigProto()
              config.gpu_options.per_process_gpu_memory_fraction = vram_ratio
              session = self.tf.Session(config=config)
              with session.as_default():
                  session.run(self.output, feed_dict={self.input: placeholder})
          return session
  
      def predict(self, feed_item):
          """ Predict landmarks in session """
          return self.session.run(self.output,
 
</s> remove         self.input = self.graph.get_tensor_by_name("fa/0:0")
        self.output = self.graph.get_tensor_by_name("fa/Add_95:0")
 </s> add         self.input = self.graph.get_tensor_by_name("fa/input_1:0")
        self.output = self.graph.get_tensor_by_name("fa/transpose_647:0") </s> remove         card_id, _, vram_total = self.get_vram_free()
        if card_id == -1:
            self.init.set()
            raise ValueError("No Graphics Card Detected! FAN is not currently supported on CPU. "
                             "Use another aligner such as DLIB ( -A dlib ).")
 </s> add         _, _, vram_total = self.get_vram_free() </s> remove                     "\n\tGPU heavy."})
 </s> add                     "\n\tGPU heavy, slow when not running on GPU"})
                if any("gpu" in str(device).lower() for device in session.list_devices()):
                    logger.debug("Using GPU")
                else:
                    logger.warning("Using CPU")
              config = self.tf.ConfigProto()
              config.gpu_options.per_process_gpu_memory_fraction = vram_ratio
              session = self.tf.Session(config=config)
              with session.as_default():
                if any("gpu" in str(device).lower() for device in session.list_devices()):
                    logger.debug("Using GPU")
                else:
                    logger.warning("Using CPU")
                  session.run(self.output, feed_dict={self.input: placeholder})
          return session
  
      def predict(self, feed_item):
          """ Predict landmarks in session """
          return self.session.run(self.output,
keep keep keep add keep keep keep keep keep keep
 Convert FAN to run on CPU as well as GPU 
plugins/extract/align/fan.py