              the final batch """
          exhausted = False
          batch = list()
          for _ in range(self.batch_size):
              item = self.queues["in"].get()
              if item == "EOF":
                  exhausted = True
                  break
              batch.append(item)
          return (exhausted, batch)
 
</s> remove             item = self.queues["in"].get()
 </s> add             item = self.get_item() </s> remove             image, face = item
 </s> add             face = item["face"] </s> remove         while True:
            item = self.queues["in"].get()
 </s> add         for item in self.get_item(): </s> remove                 break
            if item.get("exception", False):
                self.queues["out"].put(item)
 </s> add                 self.finalize(item) </s> remove         try:
            while True:
                item = self.queues["in"].get()
                if item in ("EOF", "END"):
                    self.queues["in"].put("END")
                    break

                filename, image = item
                detect_image = self.compile_detection_image(image, True, True)
 </s> add         while True:
            item = self.get_item()
            if item == "EOF":
                break
            logger.trace("Detecting faces: %s", item["filename"])
            detect_image = self.compile_detection_image(item["image"], True, True)
            item = self.get_item()
              the final batch """
          exhausted = False
          batch = list()
          for _ in range(self.batch_size):
            item = self.get_item()
              if item == "EOF":
                  exhausted = True
                  break
              batch.append(item)
          return (exhausted, batch)
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/_base.py