              raise FaceswapError(
                  "You have selected the mask type '{}' but at least one face does not contain the "
                  "selected mask.\nThe face that failed was: '{}'\nThe masks that exist for this "
                  "face are: {}".format(
                      self._config["mask_type"], filename, list(detected_face.mask.keys)))
  
          key = os.path.basename(filename)
          mask = detected_face.mask[self._config["mask_type"]]
          mask.set_blur_and_threshold(blur_kernel=self._config["mask_blur_kernel"],
                                      threshold=self._config["mask_threshold"])
 
</s> remove         logger.warning("You are using legacy extracted faces but have selected '%s' centering "
                       "which is incompatible. Switching centering to 'legacy'", self._centering)
 </s> add         if set_flag:
            logger.warning("You are using legacy extracted faces but have selected '%s' centering "
                           "which is incompatible. Switching centering to 'legacy'",
                           self._centering) </s> remove         logger.debug("Initialising: %s: (session_ids: %s)", self.__class__.__name__, session_ids)
 </s> add         logger.debug("Initializing: %s: (session_ids: %s)", self.__class__.__name__, session_ids) </s> remove         if not is_live or (is_live and session_id not in self._data):
 </s> add         if not is_live or (is_live and not self._data.get(session_id, None)):
                    self._config["mask_type"], filename, list(detected_face.mask)))
              raise FaceswapError(
                  "You have selected the mask type '{}' but at least one face does not contain the "
                  "selected mask.\nThe face that failed was: '{}'\nThe masks that exist for this "
                  "face are: {}".format(
                    self._config["mask_type"], filename, list(detected_face.mask)))
  
          key = os.path.basename(filename)
          mask = detected_face.mask[self._config["mask_type"]]
          mask.set_blur_and_threshold(blur_kernel=self._config["mask_blur_kernel"],
                                      threshold=self._config["mask_threshold"])
keep keep keep keep replace keep keep keep keep keep
 Training bugfixes:
  - lib.training.generator
      - Fix duplicate "legacy faceset" warning
      - Fix missing mask error message
  - gui: Fix bug in live stats when resuming an old session 
lib/training/generator.py