              exit(0)
          if os.path.isfile(mask_input) and self._input_is_faces:
              logger.error("Input type 'faces' was selected but input is not a folder: '%s'",
                           mask_input)
              exit(0)
          logger.debug("input '%s' is valid", mask_input)
  
      def _set_saver(self, arguments):
          """ set the saver in a background thread
  
 
</s> remove             exit(0)
 </s> add             sys.exit(0) </s> remove                 exit(0)
 </s> add                 sys.exit(0) </s> remove             logger.debug("Not updating existing mask for face: '%s' - %s", frame, idx)
 </s> add             logger.debug("Mask pre-exists for face: '%s' - %s", frame, idx) </s> remove             detected_faces = []
            for idx, alignment in enumerate(self._alignments.get_faces_in_frame(frame)):
                self._face_count += 1
                if self._check_for_missing(frame, idx, alignment):
                    continue
                detected_face = self._get_detected_face(alignment)
                if self._update_type == "output":
 </s> add             faces_in_frame = self._alignments.get_faces_in_frame(frame)
            self._face_count += len(faces_in_frame)

            # To keep face indexes correct/cover off where only one face in an image is missing a
            # mask where there are multiple faces we process all faces again for any frames which
            # have missing masks.
            if all(self._check_for_missing(frame, idx, alignment)
                   for idx, alignment in enumerate(faces_in_frame)):
                continue

            detected_faces = [self._get_detected_face(alignment) for alignment in faces_in_frame]
            if self._update_type == "output":
                for idx, detected_face in enumerate(detected_faces):
            sys.exit(0)
              exit(0)
          if os.path.isfile(mask_input) and self._input_is_faces:
              logger.error("Input type 'faces' was selected but input is not a folder: '%s'",
                           mask_input)
            sys.exit(0)
          logger.debug("input '%s' is valid", mask_input)
  
      def _set_saver(self, arguments):
          """ set the saver in a background thread
  
keep keep keep keep replace keep keep keep keep keep
 tools.mask - Bugfixes
- Missing masks - fix memory leak
- Missing masks - Handle multiple faces in frames properly 
tools/mask.py