                   "\n\t Pixel_Gradient_Difference - Instead of minimizing the difference between "
                   "the absolute value of each pixel in two reference images, compute the pixel to "
                   "pixel spatial difference in each image and then minimize that difference "
                   "between two images. Allows for large color shifts,but maintains the structure "
                   "of the image.\n"
                   )
          self.add_item(section=section, title="mask_type", datatype=str, default="none",
                        choices=get_available_masks(),
                        info="The mask to be used for training:"
                             "\n\t none: Doesn't use any mask."
                             "\n\t components: An improved face hull mask using a facehull of 8 "
 
</s> remove             info="How much of the extracted image to train on. A lower coverage will limit the model's "
                 "scope to a zoomed-in central area while higher amounts can include the entire face. "
                 "A trade-off exists between lower amounts given a bit more detail versus higher amounts "
                 "avoiding noticeable swap transitions. Sensible values to use are:"
 </s> add             info="How much of the extracted image to train on. A lower coverage will limit the "
                 "model's scope to a zoomed-in central area while higher amounts can include the "
                 "entire face. A trade-off exists between lower amounts given more detail "
                 "versus higher amounts avoiding noticeable swap transitions. Sensible values to "
                 "use are:" </s> remove 
    def update_legacy_config(self):
        """ Update legacy state config files with the new loss formating
        """
        prior = "dssim_loss"
        new = "loss_function"
        if prior in self.config.keys() and new not in self.config.keys():
            self.config[new] = "ssim" if self.config[prior] is True else "mae"
            logger.debug("Updated config from older dssim format. New config loss function: %s",
                         self.config[new])
 </s> add  </s> remove     def get_loss_functions(self, side, predict, mask):
 </s> add     def get_loss_functions(self, mask): </s> remove             loss = Loss(side, model.outputs, mask_input, self.predict)
 </s> add             loss = Loss(model.outputs, mask_input)
                 "of the image.\n")
                   "\n\t Pixel_Gradient_Difference - Instead of minimizing the difference between "
                   "the absolute value of each pixel in two reference images, compute the pixel to "
                   "pixel spatial difference in each image and then minimize that difference "
                   "between two images. Allows for large color shifts,but maintains the structure "
                 "of the image.\n")
                 "of the image.\n")
          self.add_item(section=section, title="mask_type", datatype=str, default="none",
                        choices=get_available_masks(),
                        info="The mask to be used for training:"
                             "\n\t none: Doesn't use any mask."
                             "\n\t components: An improved face hull mask using a facehull of 8 "
keep keep keep keep replace replace keep keep keep keep keep
 Post PR Fixups

- train/_config.py: PEP8 Fixes. Slight description change on coverage
- models/_base.py:
   - Remove unused variables from Loss()
   - Delete legacy config items from state file
   - Save state file on Legacy update
   - PEP8
- Remove _defaults.py for models with no config options 
plugins/train/_config.py