                              "function: '%s'", self.config[new])
                  continue
  
              # Add learn mask option and set to True if model has "penalized_mask_loss" specified
              if old == "penalized_mask_loss" and new not in self.config:
                  self.config[new] = self.config["penalized_mask_loss"]
                  updated = True
                  logger.info("Added new 'learn_mask' config item for this model. Value set to: %s",
                              self.config[new])
                  continue
  
 
</s> remove             if old == "mask_type" and self.config[old] in ("facehull", "dfl_full"):
 </s> add             if old == "mask_type" and new == "mask_type" and self.config[old] in ("facehull",
                                                                                  "dfl_full"): </s> remove         priors = ["dssim_loss", "penalized_mask_loss", "mask_type"]
 </s> add         priors = ["dssim_loss", "mask_type", "mask_type"] </s> remove             * masks - If `penalized_mask_loss` exists but `learn_mask` does not, then add the
            latter and set to the same value as `penalized_mask_loss`.
 </s> add             * masks - If `learn_mask` does not exist then it is set to ``True`` if `mask_type` is
            not ``None`` otherwised it is set to ``False``.
            if old == "mask_type" and new == "learn_mask" and new not in self.config:
                self.config[new] = self.config["mask_type"] is not None
                              "function: '%s'", self.config[new])
                  continue
  
              # Add learn mask option and set to True if model has "penalized_mask_loss" specified
            if old == "mask_type" and new == "learn_mask" and new not in self.config:
                self.config[new] = self.config["mask_type"] is not None
            if old == "mask_type" and new == "learn_mask" and new not in self.config:
                self.config[new] = self.config["mask_type"] is not None
                  updated = True
                  logger.info("Added new 'learn_mask' config item for this model. Value set to: %s",
                              self.config[new])
                  continue
  
keep keep keep keep replace replace keep keep keep keep keep
 bugfix: plugins.train.model._base - Legacy update.
Set `learn_mask` to False on legacy models if a `mask_type` does not exist otherwise `True` 
plugins/train/model/_base.py