              are required. """
          penalized_loss = self._model.config["penalized_mask_loss"]
  
          alignments = _TrainingAlignments(self._model, self._images)
          # Update centering if it has been changed by legacy facesets in TrainingAlignments
          self._config["centering"] = self._model.config["centering"]
          retval = dict(aligned_faces=alignments.aligned_faces,
                        versions=alignments.versions)
  
          if self._model.config["learn_mask"] or penalized_loss:
 
</s> remove             if self._defaults.get(filetype, None):
 </s> add             if self._defaults.get(filetype): </s> remove         defaults = {key: val[0][1].replace("*", "")
 </s> add         defaults = {key: next(ext for ext in val[0][1].split(" ")).replace("*", "") </s> remove         Used for updating legacy facesets to contain the meta information within the image header
 </s> add         Used for updating legacy face sets to contain the meta information within the image header </s> remove             ``True`` if images were succesfully loaded to cache otherwise ``False``
 </s> add             ``True`` if images were successfully loaded to cache otherwise ``False``
        # Update centering if it has been changed by legacy face sets in TrainingAlignments
              are required. """
          penalized_loss = self._model.config["penalized_mask_loss"]
  
          alignments = _TrainingAlignments(self._model, self._images)
        # Update centering if it has been changed by legacy face sets in TrainingAlignments
          self._config["centering"] = self._model.config["centering"]
          retval = dict(aligned_faces=alignments.aligned_faces,
                        versions=alignments.versions)
  
          if self._model.config["learn_mask"] or penalized_loss:
keep keep keep keep replace keep keep keep keep keep
 Bugfixes:
  - plugins.train.trainer._base - Don't output error message for sides which have valid masks
  - lib.gui.menu - Fix project file saving extension on Linux 
plugins/train/trainer/_base.py