a8e8f9157b38314bb12910fe13fa7f34739d9c2b,tools/lib_alignments/jobs.py,Merge,process,#Merge#,455

Before Change


        logger.info("[MERGE ALIGNMENTS]")  // Tidy up cli output
        skip_count = 0
        merge_count = 0
        for _, src_alignments, _, frame in tqdm(self.alignments2.yield_faces(),
                                                desc="Merging Alignments",
                                                total=self.alignments2.frames_count):
            for idx, alignment in enumerate(src_alignments):
                if not alignment.get("hash", None):
                    logger.warning("Alignment "%s":%s has no Hash! Skipping", frame, idx)
                    skip_count += 1
                    continue
                if self.check_exists(frame, alignment, idx):
                    skip_count += 1
                    continue
                self.merge_alignment(frame, alignment, idx)
                merge_count += 1
        logger.info("Alignments Merged: %s", merge_count)
        logger.info("Alignments Skipped: %s", skip_count)
        if merge_count != 0:
            self.set_destination_filename()

After Change


        logger.info("[MERGE ALIGNMENTS]")  // Tidy up cli output
        skip_count = 0
        merge_count = 0
        total_count = sum([alignments.frames_count for alignments in self.process_alignments])
        with tqdm(desc="Merging Alignments", total=total_count) as pbar:
            for alignments in self.process_alignments:
                for _, src_alignments, _, frame in alignments.yield_faces():
                    for idx, alignment in enumerate(src_alignments):
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 6

Instances


Project Name: deepfakes/faceswap
Commit Name: a8e8f9157b38314bb12910fe13fa7f34739d9c2b
Time: 2019-04-12
Author: 36920800+torzdf@users.noreply.github.com
File Name: tools/lib_alignments/jobs.py
Class Name: Merge
Method Name: process


Project Name: deepfakes/faceswap
Commit Name: d2dbd440d89d22b4b75f30ddeb4c4ebd3882ecfa
Time: 2019-05-14
Author: 36920800+torzdf@users.noreply.github.com
File Name: tools/sort.py
Class Name: Sort
Method Name: sort_face_dissim


Project Name: deepfakes/faceswap
Commit Name: 9ebc0abc8e85a2fa722aaaf75f8c8793e95ea12f
Time: 2019-12-15
Author: 36920800+torzdf@users.noreply.github.com
File Name: tools/sort.py
Class Name: Sort
Method Name: sort_face