          mtcnn_graph.finalize()
  
          if not is_gpu:
              alloc = 2048
              if self.verbose:
                  print("Using CPU. Limiting RAM useage to {}MB".format(alloc))
  
          self.batch_size = int(alloc / self.vram)
  
          if self.batch_size < 1:
              raise ValueError("Insufficient VRAM available to continue "
 
</s> remove         if self.verbose:
            print("Processing in {} threads".format(self.batch_size))
 </s> add         logger.verbose("Processing in %s threads", self.batch_size) </s> remove             if self.verbose:
                print("Using CPU. Limiting RAM useage to "
                      "{}MB".format(vram_free))
 </s> add  </s> remove         if self.verbose:
            print("Processing in batches of {}".format(self.batch_size))
 </s> add         logger.verbose("Processing in batches of %s", self.batch_size) </s> remove                 alloc = int(sess.run(tf.contrib.memory_stats.BytesLimit()) /
                            (1024 * 1024))
 </s> add 
            logger.warning("Using CPU")
        else:
            alloc = vram_free
        logger.debug("Allocated for Tensorflow: %sMB", alloc)
          mtcnn_graph.finalize()
  
          if not is_gpu:
              alloc = 2048
            logger.warning("Using CPU")
        else:
            alloc = vram_free
        logger.debug("Allocated for Tensorflow: %sMB", alloc)
            logger.warning("Using CPU")
        else:
            alloc = vram_free
        logger.debug("Allocated for Tensorflow: %sMB", alloc)
  
          self.batch_size = int(alloc / self.vram)
  
          if self.batch_size < 1:
              raise ValueError("Insufficient VRAM available to continue "
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/detect/mtcnn.py