              output_size,
              output_has_mask)
  
          if self.args.color_adjustment != "none" and self.args.color_adjustment is not None:
              self.adjustments["color"] = PluginLoader.get_converter("color",
                                                                     self.args.color_adjustment)()
  
          if self.args.scaling != "none" and self.args.scaling is not None:
              self.adjustments["scaling"] = PluginLoader.get_converter("scaling",
                                                                       self.args.scaling)()
          logger.debug("Loaded plugins: %s", self.adjustments)
 
</s> remove             self.adjustments["scaling"] = PluginLoader.get_converter("scaling",
                                                                     self.args.scaling)()
 </s> add             self.adjustments["scaling"] = PluginLoader.get_converter(
                "scaling",
                self.args.scaling,
                disable_logging=disable_logging)(config=config) </s> remove         self.adjustments["mask"] = PluginLoader.get_converter("mask", "mask_blend")(
            self.args.mask_type,
            output_size,
            output_has_mask)
 </s> add     def load_plugins(self, config=None, disable_logging=False):
        """ Load the requested adjustment plugins """
        logger.debug("Loading plugins. config: %s", config)
        self.adjustments["box"] = PluginLoader.get_converter(
            "mask",
            "box_blend",
            disable_logging=disable_logging)("none",
                                             self.output_size,
                                             config=config)

        self.adjustments["mask"] = PluginLoader.get_converter(
            "mask",
            "mask_blend",
            disable_logging=disable_logging)(self.args.mask_type,
                                             self.output_size,
                                             self.output_has_mask,
                                             config=config) </s> remove     def __init__(self, mask_type, output_size, predicted_available):
        super().__init__(mask_type, output_size, predicted_available)
 </s> add     def __init__(self, mask_type, output_size, predicted_available, config=None):
        super().__init__(mask_type, output_size, predicted_available, config) </s> remove def initialize_images():
    """ Initialize the config and add to global constant """
 </s> add def initialize_images(pathcache=None):
    """ Initialize the images and add to global constant """
            self.adjustments["color"] = PluginLoader.get_converter(
                "color",
                self.args.color_adjustment,
                disable_logging=disable_logging)(config=config)
              output_size,
              output_has_mask)
  
          if self.args.color_adjustment != "none" and self.args.color_adjustment is not None:
            self.adjustments["color"] = PluginLoader.get_converter(
                "color",
                self.args.color_adjustment,
                disable_logging=disable_logging)(config=config)
            self.adjustments["color"] = PluginLoader.get_converter(
                "color",
                self.args.color_adjustment,
                disable_logging=disable_logging)(config=config)
  
          if self.args.scaling != "none" and self.args.scaling is not None:
              self.adjustments["scaling"] = PluginLoader.get_converter("scaling",
                                                                       self.args.scaling)()
          logger.debug("Loaded plugins: %s", self.adjustments)
keep keep keep keep replace replace keep keep keep keep keep
 Convert settings tool (#737)

* Initial prediction pipeline and display

* Patch faces from convert pipeline. Load configs

* Add tkinter canvas for image display

* Radio buttons to config gui. Standardise config gui. Remove dssim loss from realface

* Add action frame

* Live update cli options

* Live update config changes

* Quicker frame loading. Refresh faces button callback

* remove debug code

* Add saving and reloading config buttons

* Reduce lag with threading

* Busy indicator + geometry updates

* Fix options canvas resizing

* Add global config saving and resetting

* tools to own tab

* Rename tool to 'preview'

* geometry tweak

* pep8 fixes 
lib/convert.py