deepfakes / faceswap

Deepfakes Software For All
https://www.faceswap.dev
GNU General Public License v3.0
50.52k stars 13.06k forks source link

Suggestion: Progress bar during extraction and conversion #80

Closed Irastris closed 6 years ago

Irastris commented 6 years ago

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.

gdunstone commented 6 years ago

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 commented 6 years ago

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

Clorr commented 6 years ago

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