  
      def convert(self, converter, item):
          try:
              (filename, image, faces) = item
              skip = False
              try:
                  if self.frame_ranges is not None:
                      # grab the index with last number regex
                      idx = int(self.imageidxre.findall(filename)[0])
                      # only skip if the current index is not between any of the frame ranges.
                      skip = not any(map(lambda b: b[0]<=idx<=b[1], self.frame_ranges))
              except:
                  # if we error, dont skip
                  skip = False
  
              if not skip: # process as normal
                  for idx, face in faces:
                      image = converter.patch_image(image, face)
  
 
</s> remove         print("[{0}] [#{1:05d}] loss_A: {2:.5f}, loss_B: {3:.5f}".format(time.strftime("%H:%M:%S"), iter, loss_A, loss_B))
 </s> add         print("[{0}] [#{1:05d}] loss_A: {2:.5f}, loss_B: {3:.5f}".format(time.strftime("%H:%M:%S"), iter, loss_A, loss_B),
            end='\r')

            skip = self.check_skip(filename)
  
      def convert(self, converter, item):
          try:
              (filename, image, faces) = item
            skip = self.check_skip(filename)
            skip = self.check_skip(filename)
            skip = self.check_skip(filename)
            skip = self.check_skip(filename)
            skip = self.check_skip(filename)
            skip = self.check_skip(filename)
            skip = self.check_skip(filename)
            skip = self.check_skip(filename)
            skip = self.check_skip(filename)
            skip = self.check_skip(filename)
  
              if not skip: # process as normal
                  for idx, face in faces:
                      image = converter.patch_image(image, face)
  
keep keep keep keep replace replace replace replace replace replace replace replace replace replace keep keep keep keep keep
 frame-range changes (#92)

* extended arguments for convert re https://github.com/deepfakes/faceswap/issues/85

* forgot to change helptext for extended arguments.

* Added -fr --frame-range argument to convert

accepts a list of frame ranges like `-fr 40-50 90-100`

still writes out frames that havent been converted.

* added --discard-frames argument

--discard-frames discards frames not included in --frame-range instead
of writing them out unchanged.

* Made training message slightly clearer

* Revert "Made training message slightly clearer"

This reverts commit 25a9744aea444a67a4825ec86d06357b31a43c9d.

* Training status now '\r's rather than newlines.
Maybe its good, maybe its bad.
I like it.

* fixing https://github.com/deepfakes/faceswap/pull/90#issuecomment-362309166 
scripts/convert.py