              ``True`` if the flag should be set to indicate that the cache is being reset because of
              a legacy face set/centering mismatch. ``False`` if the cache is being reset because it
              has detected a reset flag from the opposite cache.
          """
          logger.warning("You are using legacy extracted faces but have selected '%s' centering "
                         "which is incompatible. Switching centering to 'legacy'", self._centering)
          self._config["centering"] = "legacy"
          self._centering = "legacy"
          self._cache = {key: dict(cached=False) for key in self._cache}
          self._cache_full = False
          self._size = None
 
</s> remove         self._is_training = is_training
 </s> add         logger.debug("Initializing: %s: (logs_folder: %s, is_training: %s)",
                     self.__class__.__name__, logs_folder, is_training)
        self._is_training = False
        self._training_iterator = None
 </s> remove                     self._config["mask_type"], filename, list(detected_face.mask.keys)))
 </s> add                     self._config["mask_type"], filename, list(detected_face.mask))) </s> remove         self._training_iterator = None
 </s> add         logger.debug("Initialized: %s", self.__class__.__name__)
        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)
              ``True`` if the flag should be set to indicate that the cache is being reset because of
              a legacy face set/centering mismatch. ``False`` if the cache is being reset because it
              has detected a reset flag from the opposite cache.
          """
        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)
        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)
          self._config["centering"] = "legacy"
          self._centering = "legacy"
          self._cache = {key: dict(cached=False) for key in self._cache}
          self._cache_full = False
          self._size = None
keep keep keep keep replace 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