          argument_list.append({"opts": ("-w", "--write-image"),
                                "action": "store_true",
                                "dest": "write_image",
                                "default": False,
                                "help": "Writes the training result to a file "
                                        "even on preview mode"})
          argument_list.append({"opts": ("-ag", "--allow-growth"),
                                "action": "store_true",
                                "dest": "allow_growth",
                                "default": False,
                                "help": "Sets allow_growth option of Tensorflow "
 
</s> remove                               "help": "Show preview output. If not specified, "
                                      "write progress to file"})
 </s> add                               "help": "Show training preview output. in a separate window."}) </s> remove                                       "file."})
 </s> add                                       "file. NB: This should be the source video/frames NOT the "
                                      "source faces."}) </s> remove         minmax = {"min": 0,  # never any frames less than 0
                  "max": float("inf")}
        retval = [tuple(map(lambda q: minmax[q] if q in minmax.keys() else int(q), v.split("-")))
                  for v in self.args.frame_ranges]
 </s> add         minframe, maxframe = None, None
        if self.images.is_video:
            minframe, maxframe = 1, self.images.images_found
        else:
            indices = [int(self.imageidxre.findall(os.path.basename(filename))[0])
                       for filename in self.images.input_images]
            if indices:
                minframe, maxframe = min(indices), max(indices)
        logger.debug("minframe: %s, maxframe: %s", minframe, maxframe)

        if minframe is None or maxframe is None:
            logger.error("Frame Ranges specified, but could not determine frame numbering "
                         "from filenames")
            exit(1)

        retval = list()
        for rng in self.args.frame_ranges:
            if "-" not in rng:
                logger.error("Frame Ranges not specified in the correct format")
                exit(1)
            start, end = rng.split("-")
            retval.append((max(int(start), minframe), min(int(end), maxframe))) </s> remove     def patch_iterator(self, processes):
        """ Prepare the images for conversion """
        out_queue = queue_manager.get_queue("out")
        completed = 0

        while True:
            try:
                item = out_queue.get(True, 1)
            except QueueEmpty:
                self.check_thread_error()
                continue
            self.check_thread_error()

            if item == "EOF":
                completed += 1
                logger.debug("Got EOF %s of %s", completed, processes)
                if completed == processes:
                    break
                continue

            logger.trace("Yielding: '%s'", item[0])
            yield item
        logger.debug("iterator exhausted")
        return "EOF"

 </s> add 
                              "help": "Writes the training result to a file. The image will be "
                                      "stored in the root of your FaceSwap folder."})
          argument_list.append({"opts": ("-w", "--write-image"),
                                "action": "store_true",
                                "dest": "write_image",
                                "default": False,
                              "help": "Writes the training result to a file. The image will be "
                                      "stored in the root of your FaceSwap folder."})
                              "help": "Writes the training result to a file. The image will be "
                                      "stored in the root of your FaceSwap folder."})
          argument_list.append({"opts": ("-ag", "--allow-growth"),
                                "action": "store_true",
                                "dest": "allow_growth",
                                "default": False,
                                "help": "Sets allow_growth option of Tensorflow "
keep keep keep keep replace replace keep keep keep keep keep
 Bugfixes

sysinfo,py: CUDNN Check fix for unsupported OSes
cli.py: More useful information
scripts/convert.py: Set processes to 1 if no images are passed in
cv2_dnn aligner: Fix bounding box for negative values
scripts/convert.py: Fix for incorrect frame ranges passed in 
lib/cli.py