          event.wait(60)
          if not event.is_set():
              raise ValueError("Error inititalizing Detector")
  
      def get_mtcnn_kwargs(self):
          """ Add the mtcnn arguments into a kwargs dictionary """
          mtcnn_threshold = [float(thr.strip())
                             for thr in self.args.mtcnn_threshold]
          return {"minsize": self.args.mtcnn_minsize,
 
</s> remove         if not event:
 </s> add         if event is None:
            logger.debug("Launched Detector") </s> remove             raise ValueError("Error inititalizing Aligner")

        try:
            err = None
            err = out_queue.get(True, 1)
        except QueueEmpty:
            pass

        if err:
            if isinstance(err, str):
                queue_manager.terminate_queues()
                print(err)
                exit(1)
            else:
                queue_manager.get_queue("detect").put(err)
 </s> add             raise ValueError("Error initializing Aligner")

        logger.debug("Launched Aligner") </s> remove         d_process.in_process(detector.detect_faces, **d_kwargs)
        a_process.in_process(aligner.align, **a_kwargs)
 </s> add  </s> remove             print("Invalid MTCNN arguments received. Running with defaults")
            return {"minsize": 20,                 # minimum size of face
                    "threshold": [0.6, 0.7, 0.7],  # three steps threshold
                    "factor": 0.709}               # scale factor
 </s> add             kwargs = {"minsize": 20,                 # minimum size of face
                      "threshold": [0.6, 0.7, 0.7],  # three steps threshold
                      "factor": 0.709}               # scale factor
            logger.warning("Invalid MTCNN arguments received. Running with defaults")
        logger.debug("Using mtcnn kwargs: %s", kwargs)
        logger.debug("Launched Detector")
          event.wait(60)
          if not event.is_set():
              raise ValueError("Error inititalizing Detector")
        logger.debug("Launched Detector")
  
      def get_mtcnn_kwargs(self):
          """ Add the mtcnn arguments into a kwargs dictionary """
          mtcnn_threshold = [float(thr.strip())
                             for thr in self.args.mtcnn_threshold]
          return {"minsize": self.args.mtcnn_minsize,
keep keep add keep 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 
scripts/extract.py