                  logger.debug("EOF Received")
                  logger.debug("Patch queue finished")
                  # Signal EOF to other processes in pool
                  logger.debug("Putting EOF back to in_queue")
                  in_queue.put(item)
                  break
              logger.trace("Patch queue got: '%s'", item["filename"])
  
              try:
                  image = self.patch_image(item)
 
</s> remove             item = in_queue.get()
            if item == "EOF":
 </s> add             items = in_queue.get()
            if items == "EOF": </s> remove             logger.trace("Patch queue got: '%s'", item["filename"])

            try:
                image = self.patch_image(item)
            except Exception as err:  # pylint: disable=broad-except
                # Log error and output original frame
                logger.error("Failed to convert image: '%s'. Reason: %s",
                             item["filename"], str(err))
                image = item["image"]
                # UNCOMMENT THIS CODE BLOCK TO PRINT TRACEBACK ERRORS
                # import sys
                # import traceback
                # exc_info = sys.exc_info()
                # traceback.print_exception(*exc_info)

            logger.trace("Out queue put: %s", item["filename"])
            out_queue.put((item["filename"], image))
 </s> add             for item in items:
                logger.trace("Patch queue got: '%s'", item["filename"])
                try:
                    image = self.patch_image(item)
                except Exception as err:  # pylint: disable=broad-except
                    # Log error and output original frame
                    logger.error("Failed to convert image: '%s'. Reason: %s",
                                 item["filename"], str(err))
                    image = item["image"]
                    # UNCOMMENT THIS CODE BLOCK TO PRINT TRACEBACK ERRORS
                    # import sys
                    # import traceback
                    # exc_info = sys.exc_info()
                    # traceback.print_exception(*exc_info)

                logger.trace("Out queue put: %s", item["filename"])
                out_queue.put((item["filename"], image)) </s> remove         new_image = self.get_new_image(predicted, frame_size)
        patched_face = self.post_warp_adjustments(predicted, new_image)
 </s> add         new_image, background = self.get_new_image(predicted, frame_size)
        patched_face = self.post_warp_adjustments(background, new_image) </s> remove         patched_face = np.rint(patched_face * 255.0).astype("uint8")
 </s> add         patched_face *= 255.0
        patched_face = np.rint(
            patched_face,
            out=np.empty(patched_face.shape, dtype="uint8"),
            casting='unsafe'
        ) </s> remove         new_face = np.clip(new_face, 0.0, 1.0)
 </s> add         np.clip(new_face, 0.0, 1.0, out=new_face)
                in_queue.put(items)
                  logger.debug("EOF Received")
                  logger.debug("Patch queue finished")
                  # Signal EOF to other processes in pool
                  logger.debug("Putting EOF back to in_queue")
                in_queue.put(items)
                  break
              logger.trace("Patch queue got: '%s'", item["filename"])
  
              try:
                  image = self.patch_image(item)
keep keep keep keep replace keep keep keep keep keep
 Optimized numpy functions in Converter (#838) 
lib/convert.py