              filter_lists = dict()
              if hasattr(self.args, "ref_threshold"):
                  face_filter["ref_threshold"] = self.args.ref_threshold
              for filter_type in ('filter', 'nfilter'):
                  filter_args = getattr(self.args, filter_type, None)
                  filter_args = None if not filter_args else filter_args
                  filter_lists[filter_type] = filter_args
              face_filter["filter_lists"] = filter_lists
              postprocess_items["FaceFilter"] = {"kwargs": face_filter}
  
 
</s> remove             if hasattr(self.args, "ref_threshold"):
                face_filter["ref_threshold"] = self.args.ref_threshold
 </s> add             if hasattr(self._args, "ref_threshold"):
                face_filter["ref_threshold"] = self._args.ref_threshold </s> remove                                multiprocess=not self.args.singleprocess)
 </s> add                                multiprocess=not self._args.singleprocess) </s> remove             if hasattr(self.args, "detector"):
                detector = self.args.detector.replace("-", "_").lower()
 </s> add             if hasattr(self._args, "detector"):
                detector = self._args.detector.replace("-", "_").lower() </s> remove         if ((hasattr(self.args, "filter") and self.args.filter is not None) or
                (hasattr(self.args, "nfilter") and
                 self.args.nfilter is not None)):
 </s> add         if ((hasattr(self._args, "filter") and self._args.filter is not None) or
                (hasattr(self._args, "nfilter") and
                 self._args.nfilter is not None)): </s> remove         model_dir = get_folder(self.args.model_dir, make_folder=False)
 </s> add         model_dir = get_folder(self._args.model_dir, make_folder=False)
                filter_args = getattr(self._args, filter_type, None)
              filter_lists = dict()
              if hasattr(self.args, "ref_threshold"):
                  face_filter["ref_threshold"] = self.args.ref_threshold
              for filter_type in ('filter', 'nfilter'):
                filter_args = getattr(self._args, filter_type, None)
                  filter_args = None if not filter_args else filter_args
                  filter_lists[filter_type] = filter_args
              face_filter["filter_lists"] = filter_lists
              postprocess_items["FaceFilter"] = {"kwargs": face_filter}
  
keep keep keep keep replace keep keep keep keep keep
 Smart Masks to Convert (#957)

- scripts.convert - Use Smart Masks for Convert
    * Make on-the-fly conversion an explicit option

- Move BlurMask to lib.faces_detect

- tools.preview - Fix for smart masks
    * Subclass from tk.Tk
    * Options to lib.gui.control_helper
    *variable cleanup

- lib.logger - Demote more tensorflow deprecation messages

- Documentation:
    * lib.faces_detect.BlurMask
    * plugins.convert.mask
    * lib.convert
    * scripts.convert
    * scripts.fsmedia
    * tools.preview 
scripts/fsmedia.py