faceswap icon indicating copy to clipboard operation
faceswap copied to clipboard

Suggestion: Progress bar during extraction and conversion

Open Irastris opened this issue 8 years ago • 3 comments

Would it be possible to have a progress bar while extracting faces from photos and while swapping faces with trained model? Currently, atleast during extraction, it just says Starting, this may take a while... until the process ends.

Irastris avatar Jan 29 '18 22:01 Irastris

with tqdm this is super easy, not sure about including it as a dependency, I'll fork tomorrow.

faceswap/lib/cli.py:51

def process_directory(self):
        for filename in tqdm(self.input_dir):
            if self.arguments.verbose:
                print('Processing: {}'.format(os.path.basename(filename)))

            self.process_image(filename)
            self.images_processed = self.images_processed + 1

        self.finalize()

gdunstone avatar Jan 30 '18 12:01 gdunstone

This will probably impact https://github.com/deepfakes/faceswap/pull/62 with the multicore directory processor.

gdunstone avatar Jan 30 '18 13:01 gdunstone

I'm closing this as you did a pull request ;-)

Clorr avatar Jan 31 '18 18:01 Clorr