          self.kwargs = kwargs["mtcnn_kwargs"]
  
          mtcnn_graph = tf.Graph()
          with mtcnn_graph.as_default():  # pylint: disable=not-context-manager
              sess = tf.Session()
              with sess.as_default():  # pylint: disable=not-context-manager
                  pnet, rnet, onet = create_mtcnn(sess, self.model_path)
  
              if any("gpu" in str(device).lower()
                     for device in sess.list_devices()):
 
</s> remove                 alloc = int(sess.run(tf.contrib.memory_stats.BytesLimit()) /
                            (1024 * 1024))
 </s> add  </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         print("Initializing MTCNN Detector...")
 </s> add 
            sess = tf.Session(config=config)
          self.kwargs = kwargs["mtcnn_kwargs"]
  
          mtcnn_graph = tf.Graph()
          with mtcnn_graph.as_default():  # pylint: disable=not-context-manager
            sess = tf.Session(config=config)
              with sess.as_default():  # pylint: disable=not-context-manager
                  pnet, rnet, onet = create_mtcnn(sess, self.model_path)
  
              if any("gpu" in str(device).lower()
                     for device in sess.list_devices()):
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/detect/mtcnn.py