          self.train_stats = {"iterations": 0, "timestamp": None}
          self.consoleregex = {
              "loss": re.compile(r"([a-zA-Z_]+):.*?(\d+\.\d+)"),
              "tqdm": re.compile(r".*?(?P<pct>\d+%).*?(?P<itm>\d+/\d+)\W\["
                                 r"(?P<tme>\d+:\d+<.*),\W(?P<rte>.*)[a-zA-Z/]*\]")}
          logger.debug("Initialized %s", self.__class__.__name__)
  
      def execute_script(self, command, args):
          """ Execute the requested Faceswap Script """
          logger.debug("Executing Faceswap: (command: '%s', args: %s)", command, args)
 
</s> remove             _inputs = {_input_path: _input_opts, ref_vid.path: None}
 </s> add             _inputs = OrderedDict([(_input_path, _input_opts), (ref_vid.path, None)]) </s> remove         _inputs = {input_.path: _input_opts, ref_vid.path: _ref_vid_opts}
 </s> add         _inputs = OrderedDict([(input_.path, _input_opts), (ref_vid.path, _ref_vid_opts)]) </s> remove         _output_opts = '-vf fps="' + str(fps) + '" '
 </s> add         _fps_arg = '-r ' + str(fps) + ' '
        _input_opts += _fps_arg + "-f image2 "
        _output_opts = _fps_arg
                               r"(?P<tme>\d+:\d+<.*),\W(?P<rte>.*)[a-zA-Z/]*\]"),
            "ffmpeg": re.compile(r"([a-zA-Z]+)=\s*([\d|N/A]\S+)")}
          self.train_stats = {"iterations": 0, "timestamp": None}
          self.consoleregex = {
              "loss": re.compile(r"([a-zA-Z_]+):.*?(\d+\.\d+)"),
              "tqdm": re.compile(r".*?(?P<pct>\d+%).*?(?P<itm>\d+/\d+)\W\["
                               r"(?P<tme>\d+:\d+<.*),\W(?P<rte>.*)[a-zA-Z/]*\]"),
            "ffmpeg": re.compile(r"([a-zA-Z]+)=\s*([\d|N/A]\S+)")}
          logger.debug("Initialized %s", self.__class__.__name__)
  
      def execute_script(self, command, args):
          """ Execute the requested Faceswap Script """
          logger.debug("Executing Faceswap: (command: '%s', args: %s)", command, args)
keep keep keep keep replace keep keep keep keep keep
 Fix effmpeg fps detection and better GUI handling 
lib/gui/wrapper.py